home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Hyper / M-Md / MagMaker 1.02.sit / MagMaker Tools A < prev    next >
MacBinary  |  1994-03-19  |  74.9 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sat Mar 19 12:02:37 1994, modified Sat Mar 19 12:02:37 1994, creator HyperCard, type HyperCard stack, 65952 bytes "MagMaker Tools A" , at 0x10220 10420 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 4d 61 67 4d 61 6b | 65 72 20 54 6f 6f 6c 73 |..MagMak|er Tools|
|00000010| 20 41 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | A......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 01 01 a0 00 | 00 28 b4 a9 b0 e0 ad a9 |........|.(......|
|00000060| b0 e0 ad 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a1 f4 00 00 |........|........|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 01 01 a0 | 00 00 70 00 00 00 00 00 |........|..p.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a 20 00 00 00 01 |........|... ....|
|000000b0| 00 00 0b 8a 00 00 0e ee | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 20 80 00 | 02 20 80 00 02 20 80 00 |..... ..|. ... ..|
|000000f0| de 77 36 c3 00 00 00 00 | 00 50 00 80 01 68 02 00 |.w6.....|.P...h..|
|00000100| 00 00 00 00 01 90 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d e7 00 00 0c 82 | 01 18 01 80 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 75 70 64 61 74 | 65 54 65 78 74 0d 70 75 |on updat|eText.pu|
|00000690| 74 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 54 65 |t the se|lectedTe|
|000006a0| 78 74 20 69 6e 74 6f 20 | 77 68 61 74 54 65 78 74 |xt into |whatText|
|000006b0| 0d 64 6f 55 70 64 61 74 | 65 20 77 68 61 74 54 65 |.doUpdat|e whatTe|
|000006c0| 78 74 0d 65 6e 64 20 75 | 70 64 61 74 65 54 65 78 |xt.end u|pdateTex|
|000006d0| 74 0d 0d 6f 6e 20 6f 70 | 65 6e 43 61 72 64 0d 69 |t..on op|enCard.i|
|000006e0| 66 20 74 6f 6f 6c 73 53 | 74 61 63 6b 28 29 20 74 |f toolsS|tack() t|
|000006f0| 68 65 6e 20 65 78 69 74 | 20 6f 70 65 6e 43 61 72 |hen exit| openCar|
|00000700| 64 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |d.if the|re is a |
|00000710| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|00000720| 74 68 65 6e 0d 69 66 20 | 74 68 65 20 68 69 67 68 |then.if |the high|
|00000730| 4c 69 67 68 74 20 6f 66 | 20 62 67 20 62 74 6e 20 |Light of| bg btn |
|00000740| 22 4c 6f 63 6b 50 61 67 | 65 22 20 74 68 65 6e 0d |"LockPag|e" then.|
|00000750| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|00000760| 6d 65 6e 75 49 74 65 6d | 20 31 30 20 6f 66 20 6d |menuItem| 10 of m|
|00000770| 65 6e 75 20 22 4d 61 67 | 4d 61 6b 65 72 22 20 74 |enu "Mag|Maker" t|
|00000780| 6f 20 22 55 6e 6c 6f 63 | 6b 20 50 61 67 65 22 0d |o "Unloc|k Page".|
|00000790| 65 6c 73 65 0d 73 65 74 | 20 74 68 65 20 6e 61 6d |else.set| the nam|
|000007a0| 65 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 31 30 |e of men|uItem 10|
|000007b0| 20 6f 66 20 6d 65 6e 75 | 20 22 4d 61 67 4d 61 6b | of menu| "MagMak|
|000007c0| 65 72 22 20 74 6f 20 22 | 4c 6f 63 6b 20 50 61 67 |er" to "|Lock Pag|
|000007d0| 65 22 0d 65 6e 64 20 69 | 66 0d 69 66 20 74 68 65 |e".end i|f.if the|
|000007e0| 72 65 20 69 73 20 61 20 | 62 74 6e 20 22 50 69 63 |re is a |btn "Pic|
|000007f0| 74 75 72 65 22 20 74 68 | 65 6e 0d 73 65 74 20 74 |ture" th|en.set t|
|00000800| 68 65 20 6e 61 6d 65 20 | 6f 66 20 6d 65 6e 75 49 |he name |of menuI|
|00000810| 74 65 6d 20 31 31 20 6f | 66 20 6d 65 6e 75 20 22 |tem 11 o|f menu "|
|00000820| 4c 61 79 6f 75 74 22 20 | 74 6f 20 22 45 64 69 74 |Layout" |to "Edit|
|00000830| 20 52 75 6e 2d 41 72 6f | 75 6e 64 22 0d 65 6c 73 | Run-Aro|und".els|
|00000840| 65 0d 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |e.set th|e name o|
|00000850| 66 20 6d 65 6e 75 49 74 | 65 6d 20 31 31 20 6f 66 |f menuIt|em 11 of|
|00000860| 20 6d 65 6e 75 20 22 4c | 61 79 6f 75 74 22 20 74 | menu "L|ayout" t|
|00000870| 6f 20 22 43 72 65 61 74 | 65 20 52 75 6e 2d 41 72 |o "Creat|e Run-Ar|
|00000880| 6f 75 6e 64 22 0d 65 6e | 64 20 69 66 0d 65 6e 64 |ound".en|d if.end|
|00000890| 20 69 66 0d 2d 2d 20 70 | 61 73 73 20 6f 70 65 6e | if.-- p|ass open|
|000008a0| 43 61 72 64 0d 65 6e 64 | 20 6f 70 65 6e 43 61 72 |Card.end| openCar|
|000008b0| 64 0d 0d 0d 6f 6e 20 64 | 6f 55 70 64 61 74 65 20 |d...on d|oUpdate |
|000008c0| 61 6c 6c 54 65 78 74 0d | 67 6c 6f 62 61 6c 20 74 |allText.|global t|
|000008d0| 68 65 43 6f 72 6e 65 72 | 2c 74 68 65 54 6f 6f 6c |heCorner|,theTool|
|000008e0| 0d 69 66 20 74 68 65 20 | 73 68 6f 72 74 20 6e 61 |.if the |short na|
|000008f0| 6d 65 20 6f 66 20 74 68 | 69 73 20 63 64 20 69 73 |me of th|is cd is|
|00000900| 20 22 54 61 62 6c 65 20 | 6f 66 20 43 6f 6e 74 65 | "Table |of Conte|
|00000910| 6e 74 73 22 20 74 68 65 | 6e 0d 61 6e 73 77 65 72 |nts" the|n.answer|
|00000920| 20 22 43 61 6e d5 74 20 | 72 65 66 6c 6f 77 20 74 | "Can.t |reflow t|
|00000930| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 69 73 20 |he text |of this |
|00000940| 70 61 67 65 2e 22 0d 65 | 78 69 74 20 64 6f 55 70 |page.".e|xit doUp|
|00000950| 64 61 74 65 0d 65 6e 64 | 20 69 66 0d 70 75 74 20 |date.end| if.put |
|00000960| 74 68 65 20 73 68 6f 72 | 74 20 69 64 20 6f 66 20 |the shor|t id of |
|00000970| 74 68 69 73 20 63 64 20 | 69 6e 74 6f 20 73 74 61 |this cd |into sta|
|00000980| 72 74 43 64 49 64 0d 69 | 66 20 66 6c 64 20 22 50 |rtCdId.i|f fld "P|
|00000990| 69 63 74 54 68 69 73 50 | 61 67 65 22 20 69 73 20 |ictThisP|age" is |
|000009a0| 6e 6f 74 20 65 6d 70 74 | 79 20 61 6e 64 20 74 68 |not empt|y and th|
|000009b0| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|000009c0| 28 69 74 65 6d 20 31 20 | 6f 66 20 66 6c 64 20 22 |(item 1 |of fld "|
|000009d0| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 29 20 74 |PictThis|Page") t|
|000009e0| 68 65 6e 0d 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen.clos|e window|
|000009f0| 20 28 69 74 65 6d 20 31 | 20 6f 66 20 66 6c 64 20 | (item 1| of fld |
|00000a00| 22 50 69 63 74 54 68 69 | 73 50 61 67 65 22 29 0d |"PictThi|sPage").|
|00000a10| 65 6e 64 20 69 66 0d 75 | 6e 6d 61 72 6b 20 61 6c |end if.u|nmark al|
|00000a20| 6c 20 63 64 73 0d 6c 6f | 63 6b 20 6d 65 73 73 61 |l cds.lo|ck messa|
|00000a30| 67 65 73 0d 70 75 74 20 | 74 68 65 20 74 65 78 74 |ges.put |the text|
|00000a40| 48 65 69 67 68 74 20 6f | 66 20 66 6c 64 20 22 42 |Height o|f fld "B|
|00000a50| 6f 64 79 22 20 69 6e 74 | 6f 20 74 68 65 4c 65 61 |ody" int|o theLea|
|00000a60| 64 0d 70 75 74 20 74 68 | 65 20 74 65 78 74 46 6f |d.put th|e textFo|
|00000a70| 6e 74 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |nt of fl|d "Body"|
|00000a80| 20 69 6e 74 6f 20 74 68 | 65 46 6f 6e 74 0d 70 75 | into th|eFont.pu|
|00000a90| 74 20 74 68 65 20 74 65 | 78 74 53 69 7a 65 20 6f |t the te|xtSize o|
|00000aa0| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 69 6e 74 |f fld "B|ody" int|
|00000ab0| 6f 20 74 68 65 53 69 7a | 65 0d 69 66 20 74 68 65 |o theSiz|e.if the|
|00000ac0| 4c 65 61 64 20 69 73 20 | 31 38 20 74 68 65 6e 20 |Lead is |18 then |
|00000ad0| 70 75 74 20 31 34 20 69 | 6e 74 6f 20 74 68 65 54 |put 14 i|nto theT|
|00000ae0| 6f 74 61 6c 4c 69 6e 65 | 73 0d 69 66 20 74 68 65 |otalLine|s.if the|
|00000af0| 4c 65 61 64 20 69 73 20 | 31 36 20 74 68 65 6e 20 |Lead is |16 then |
|00000b00| 70 75 74 20 31 36 20 69 | 6e 74 6f 20 74 68 65 54 |put 16 i|nto theT|
|00000b10| 6f 74 61 6c 4c 69 6e 65 | 73 0d 69 66 20 74 68 65 |otalLine|s.if the|
|00000b20| 4c 65 61 64 20 69 73 20 | 31 34 20 74 68 65 6e 20 |Lead is |14 then |
|00000b30| 70 75 74 20 31 38 20 69 | 6e 74 6f 20 74 68 65 54 |put 18 i|nto theT|
|00000b40| 6f 74 61 6c 4c 69 6e 65 | 73 0d 69 66 20 74 68 65 |otalLine|s.if the|
|00000b50| 4c 65 61 64 20 69 73 20 | 31 32 20 74 68 65 6e 20 |Lead is |12 then |
|00000b60| 70 75 74 20 32 30 20 69 | 6e 74 6f 20 74 68 65 54 |put 20 i|nto theT|
|00000b70| 6f 74 61 6c 4c 69 6e 65 | 73 0d 70 75 74 20 74 68 |otalLine|s.put th|
|00000b80| 65 20 76 69 73 69 62 6c | 65 20 6f 66 20 6d 73 67 |e visibl|e of msg|
|00000b90| 20 69 6e 74 6f 20 6d 56 | 69 73 0d 69 66 20 74 68 | into mV|is.if th|
|00000ba0| 65 20 68 65 69 67 68 74 | 20 6f 66 20 66 6c 64 20 |e height| of fld |
|00000bb0| 22 42 6f 64 79 22 20 3c | 20 32 34 30 20 74 68 65 |"Body" <| 240 the|
|00000bc0| 6e 20 73 75 62 74 72 61 | 63 74 20 32 20 66 72 6f |n subtra|ct 2 fro|
|00000bd0| 6d 20 74 68 65 54 6f 74 | 61 6c 4c 69 6e 65 73 0d |m theTot|alLines.|
|00000be0| 70 75 74 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 |put fld |"Article|
|00000bf0| 4e 61 6d 65 22 20 69 6e | 74 6f 20 74 68 69 73 43 |Name" in|to thisC|
|00000c00| 68 61 70 74 65 72 0d 6d | 61 72 6b 20 63 64 73 20 |hapter.m|ark cds |
|00000c10| 77 68 65 72 65 20 66 6c | 64 20 22 41 72 74 69 63 |where fl|d "Artic|
|00000c20| 6c 65 4e 61 6d 65 22 20 | 69 73 20 74 68 69 73 43 |leName" |is thisC|
|00000c30| 68 61 70 74 65 72 0d 67 | 6f 20 66 69 72 73 74 20 |hapter.g|o first |
|00000c40| 6d 61 72 6b 65 64 20 63 | 64 0d 6c 6f 63 6b 20 73 |marked c|d.lock s|
|00000c50| 63 72 65 65 6e 0d 69 66 | 20 61 6c 6c 54 65 78 74 |creen.if| allText|
|00000c60| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 70 | is empt|y then.p|
|00000c70| 75 74 20 73 61 76 65 52 | 65 74 75 72 6e 73 20 69 |ut saveR|eturns i|
|00000c80| 6e 74 6f 20 74 68 65 52 | 65 74 75 72 6e 73 0d 72 |nto theR|eturns.r|
|00000c90| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|00000ca0| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00000cb0| 66 20 6d 61 72 6b 65 64 | 20 63 64 73 0d 69 66 20 |f marked| cds.if |
|00000cc0| 6e 6f 74 20 74 68 65 20 | 68 69 67 68 6c 69 67 68 |not the |highligh|
|00000cd0| 74 20 6f 66 20 62 67 20 | 62 74 6e 20 22 4c 6f 63 |t of bg |btn "Loc|
|00000ce0| 6b 50 61 67 65 22 20 74 | 68 65 6e 0d 70 75 74 20 |kPage" t|hen.put |
|00000cf0| 66 6c 64 20 22 42 6f 64 | 79 22 20 26 20 22 20 22 |fld "Bod|y" & " "|
|00000d00| 20 61 66 74 65 72 20 61 | 6c 6c 54 65 78 74 0d 70 | after a|llText.p|
|00000d10| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 66 6c |ut empty| into fl|
|00000d20| 64 20 22 42 6f 64 79 22 | 0d 65 6e 64 20 69 66 0d |d "Body"|.end if.|
|00000d30| 67 6f 20 6e 65 78 74 20 | 6d 61 72 6b 65 64 20 63 |go next |marked c|
|00000d40| 64 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 70 75 74 |d.end re|peat.put|
|00000d50| 20 22 53 74 72 69 70 70 | 69 6e 67 20 74 65 78 74 | "Stripp|ing text|
|00000d60| 2e 20 30 25 20 63 6f 6d | 70 6c 65 74 65 2e 22 0d |. 0% com|plete.".|
|00000d70| 73 65 74 20 6e 75 6d 62 | 65 72 46 6f 72 6d 61 74 |set numb|erFormat|
|00000d80| 20 74 6f 20 22 30 30 22 | 0d 70 75 74 20 74 68 65 | to "00"|.put the|
|00000d90| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 73 | number |of chars|
|00000da0| 20 6f 66 20 61 6c 6c 54 | 65 78 74 20 69 6e 74 6f | of allT|ext into|
|00000db0| 20 64 69 76 54 6f 70 0d | 72 65 70 65 61 74 0d 70 | divTop.|repeat.p|
|00000dc0| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|00000dd0| 20 63 68 61 72 73 20 6f | 66 20 61 6c 6c 54 65 78 | chars o|f allTex|
|00000de0| 74 20 69 6e 74 6f 20 74 | 6f 74 43 68 61 72 73 0d |t into t|otChars.|
|00000df0| 69 66 20 74 6f 74 43 68 | 61 72 73 20 3e 20 31 30 |if totCh|ars > 10|
|00000e00| 30 30 20 74 68 65 6e 0d | 70 75 74 20 28 31 20 2d |00 then.|put (1 -|
|00000e10| 20 28 28 74 6f 74 43 68 | 61 72 73 20 2d 20 31 30 | ((totCh|ars - 10|
|00000e20| 30 30 29 2f 64 69 76 54 | 6f 70 29 29 20 2a 20 31 |00)/divT|op)) * 1|
|00000e30| 30 30 20 69 6e 74 6f 20 | 74 68 65 50 65 72 63 65 |00 into |thePerce|
|00000e40| 6e 74 0d 70 75 74 20 22 | 53 74 72 69 70 70 69 6e |nt.put "|Strippin|
|00000e50| 67 20 74 65 78 74 2e 20 | 22 20 26 20 74 68 65 50 |g text. |" & theP|
|00000e60| 65 72 63 65 6e 74 20 26 | 20 22 25 20 63 6f 6d 70 |ercent &| "% comp|
|00000e70| 6c 65 74 65 2e 22 0d 70 | 75 74 20 63 68 61 72 20 |lete.".p|ut char |
|00000e80| 31 20 74 6f 20 31 30 30 | 30 20 6f 66 20 61 6c 6c |1 to 100|0 of all|
|00000e90| 54 65 78 74 20 69 6e 74 | 6f 20 73 74 72 69 70 54 |Text int|o stripT|
|00000ea0| 65 78 74 0d 70 75 74 20 | 72 65 74 75 72 6e 73 4f |ext.put |returnsO|
|00000eb0| 75 74 28 73 74 72 69 70 | 54 65 78 74 29 20 69 6e |ut(strip|Text) in|
|00000ec0| 74 6f 20 73 74 72 69 70 | 54 65 78 74 0d 70 75 74 |to strip|Text.put|
|00000ed0| 20 66 61 73 74 53 74 72 | 69 70 53 70 61 63 65 73 | fastStr|ipSpaces|
|00000ee0| 28 73 74 72 69 70 54 65 | 78 74 29 20 61 66 74 65 |(stripTe|xt) afte|
|00000ef0| 72 20 63 6c 65 61 6e 54 | 65 78 74 0d 64 65 6c 65 |r cleanT|ext.dele|
|00000f00| 74 65 20 63 68 61 72 20 | 31 20 74 6f 20 31 30 30 |te char |1 to 100|
|00000f10| 30 20 6f 66 20 61 6c 6c | 54 65 78 74 0d 65 6c 73 |0 of all|Text.els|
|00000f20| 65 0d 70 75 74 20 63 68 | 61 72 20 31 20 74 6f 20 |e.put ch|ar 1 to |
|00000f30| 28 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 |(the num|ber of c|
|00000f40| 68 61 72 73 20 6f 66 20 | 61 6c 6c 54 65 78 74 29 |hars of |allText)|
|00000f50| 20 6f 66 20 61 6c 6c 54 | 65 78 74 20 69 6e 74 6f | of allT|ext into|
|00000f60| 20 73 74 72 69 70 54 65 | 78 74 0d 70 75 74 20 72 | stripTe|xt.put r|
|00000f70| 65 74 75 72 6e 73 4f 75 | 74 28 73 74 72 69 70 54 |eturnsOu|t(stripT|
|00000f80| 65 78 74 29 20 69 6e 74 | 6f 20 73 74 72 69 70 54 |ext) int|o stripT|
|00000f90| 65 78 74 0d 70 75 74 20 | 66 61 73 74 53 74 72 69 |ext.put |fastStri|
|00000fa0| 70 53 70 61 63 65 73 28 | 73 74 72 69 70 54 65 78 |pSpaces(|stripTex|
|00000fb0| 74 29 20 61 66 74 65 72 | 20 63 6c 65 61 6e 54 65 |t) after| cleanTe|
|00000fc0| 78 74 0d 65 78 69 74 20 | 72 65 70 65 61 74 0d 65 |xt.exit |repeat.e|
|00000fd0| 6e 64 20 69 66 0d 65 6e | 64 20 72 65 70 65 61 74 |nd if.en|d repeat|
|00000fe0| 0d 70 75 74 20 63 6c 65 | 61 6e 54 65 78 74 20 69 |.put cle|anText i|
|00000ff0| 6e 74 6f 20 61 6c 6c 54 | 65 78 74 0d 73 65 74 20 |nto allT|ext.set |
|00001000| 74 68 65 20 6e 75 6d 62 | 65 72 46 6f 72 6d 61 74 |the numb|erFormat|
|00001010| 20 74 6f 20 22 30 22 0d | 65 6c 73 65 0d 70 75 74 | to "0".|else.put|
|00001020| 20 6e 6f 52 65 74 75 72 | 6e 73 20 69 6e 74 6f 20 | noRetur|ns into |
|00001030| 74 68 65 52 65 74 75 72 | 6e 73 0d 67 6f 20 66 69 |theRetur|ns.go fi|
|00001040| 72 73 74 20 6d 61 72 6b | 65 64 20 63 64 0d 72 65 |rst mark|ed cd.re|
|00001050| 70 65 61 74 20 77 69 74 | 68 20 75 20 3d 20 31 20 |peat wit|h u = 1 |
|00001060| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|00001070| 20 6d 61 72 6b 65 64 20 | 63 64 73 0d 69 66 20 6e | marked |cds.if n|
|00001080| 6f 74 20 74 68 65 20 68 | 69 67 68 6c 69 67 68 74 |ot the h|ighlight|
|00001090| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 4c 6f 63 6b | of bg b|tn "Lock|
|000010a0| 50 61 67 65 22 20 74 68 | 65 6e 0d 70 75 74 20 65 |Page" th|en.put e|
|000010b0| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 22 42 |mpty int|o fld "B|
|000010c0| 6f 64 79 22 0d 67 6f 20 | 6e 65 78 74 20 6d 61 72 |ody".go |next mar|
|000010d0| 6b 65 64 20 63 64 0d 65 | 6e 64 20 69 66 0d 65 6e |ked cd.e|nd if.en|
|000010e0| 64 20 72 65 70 65 61 74 | 0d 67 6f 20 66 69 72 73 |d repeat|.go firs|
|000010f0| 74 20 6d 61 72 6b 65 64 | 20 63 64 0d 65 6e 64 20 |t marked| cd.end |
|00001100| 69 66 0d 70 75 74 20 22 | 4d 61 72 6b 69 6e 67 20 |if.put "|Marking |
|00001110| 74 65 78 74 2c 20 70 6c | 65 61 73 65 20 73 74 61 |text, pl|ease sta|
|00001120| 6e 64 20 62 79 2e 22 0d | 73 65 74 20 74 68 65 20 |nd by.".|set the |
|00001130| 76 69 73 69 62 6c 65 20 | 6f 66 20 6d 73 67 20 74 |visible |of msg t|
|00001140| 6f 20 74 72 75 65 0d 70 | 75 74 20 72 65 74 75 72 |o true.p|ut retur|
|00001150| 6e 73 4f 75 74 28 61 6c | 6c 54 65 78 74 29 20 69 |nsOut(al|lText) i|
|00001160| 6e 74 6f 20 72 65 46 6c | 6f 77 4f 75 74 0d 70 75 |nto reFl|owOut.pu|
|00001170| 74 20 66 6f 72 6d 61 74 | 54 65 78 74 28 72 65 46 |t format|Text(reF|
|00001180| 6c 6f 77 4f 75 74 29 20 | 69 6e 74 6f 20 72 65 46 |lowOut) |into reF|
|00001190| 6c 6f 77 4f 75 74 0d 70 | 75 74 20 72 65 74 75 72 |lowOut.p|ut retur|
|000011a0| 6e 73 49 6e 28 72 65 66 | 6c 6f 77 4f 75 74 2c 74 |nsIn(ref|lowOut,t|
|000011b0| 68 65 46 6f 6e 74 2c 74 | 68 65 53 69 7a 65 29 20 |heFont,t|heSize) |
|000011c0| 69 6e 74 6f 20 61 6c 6c | 54 65 78 74 0d 67 6f 20 |into all|Text.go |
|000011d0| 74 6f 20 66 69 72 73 74 | 20 6d 61 72 6b 65 64 20 |to first| marked |
|000011e0| 63 64 0d 72 65 70 65 61 | 74 0d 72 65 70 65 61 74 |cd.repea|t.repeat|
|000011f0| 0d 69 66 20 6e 6f 74 20 | 74 68 65 20 68 69 67 68 |.if not |the high|
|00001200| 4c 69 67 68 74 20 6f 66 | 20 62 67 20 62 74 6e 20 |Light of| bg btn |
|00001210| 22 4c 6f 63 6b 50 61 67 | 65 22 20 74 68 65 6e 20 |"LockPag|e" then |
|00001220| 65 78 69 74 20 72 65 70 | 65 61 74 0d 67 6f 20 6e |exit rep|eat.go n|
|00001230| 65 78 74 20 6d 61 72 6b | 65 64 20 63 64 0d 69 66 |ext mark|ed cd.if|
|00001240| 20 74 68 65 20 69 64 20 | 6f 66 20 74 68 69 73 20 | the id |of this |
|00001250| 63 64 20 69 73 20 74 68 | 65 20 69 64 20 6f 66 20 |cd is th|e id of |
|00001260| 74 68 65 20 66 69 72 73 | 74 20 6d 61 72 6b 65 64 |the firs|t marked|
|00001270| 20 63 64 20 74 68 65 6e | 0d 67 6f 20 6c 61 73 74 | cd then|.go last|
|00001280| 20 6d 61 72 6b 65 64 20 | 63 64 0d 64 6f 4d 65 6e | marked |cd.doMen|
|00001290| 75 20 22 4e 65 77 20 43 | 61 72 64 22 0d 70 75 74 |u "New C|ard".put|
|000012a0| 20 74 68 69 73 43 68 61 | 70 74 65 72 20 69 6e 74 | thisCha|pter int|
|000012b0| 6f 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |o fld "A|rticleNa|
|000012c0| 6d 65 22 0d 6d 61 72 6b | 20 74 68 69 73 20 63 64 |me".mark| this cd|
|000012d0| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|000012e0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 | if.end |repeat.i|
|000012f0| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00001300| 62 74 6e 73 20 ad 20 30 | 20 74 68 65 6e 0d 72 65 |btns . 0| then.re|
|00001310| 70 65 61 74 20 77 69 74 | 68 20 78 20 3d 20 31 20 |peat wit|h x = 1 |
|00001320| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|00001330| 20 62 74 6e 73 0d 70 75 | 74 20 74 68 65 20 73 68 | btns.pu|t the sh|
|00001340| 6f 72 74 20 6e 61 6d 65 | 20 6f 66 20 62 74 6e 20 |ort name| of btn |
|00001350| 78 20 26 20 22 2c 22 20 | 69 6e 74 6f 20 62 74 6e |x & "," |into btn|
|00001360| 4c 69 73 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |List.end| repeat.|
|00001370| 69 66 20 22 50 69 63 74 | 75 72 65 22 20 69 73 20 |if "Pict|ure" is |
|00001380| 69 6e 20 62 74 6e 4c 69 | 73 74 20 74 68 65 6e 0d |in btnLi|st then.|
|00001390| 73 65 74 20 74 68 65 20 | 73 68 6f 77 4e 61 6d 65 |set the |showName|
|000013a0| 20 6f 66 20 62 74 6e 20 | 22 50 69 63 74 75 72 65 | of btn |"Picture|
|000013b0| 22 20 74 6f 20 66 61 6c | 73 65 0d 73 65 74 20 74 |" to fal|se.set t|
|000013c0| 68 65 20 73 74 79 6c 65 | 20 6f 66 20 62 74 6e 20 |he style| of btn |
|000013d0| 22 50 69 63 74 75 72 65 | 22 20 74 6f 20 22 74 72 |"Picture|" to "tr|
|000013e0| 61 6e 73 70 61 72 65 6e | 74 22 0d 70 75 74 20 74 |ansparen|t".put t|
|000013f0| 68 65 20 73 68 6f 72 74 | 20 69 64 20 6f 66 20 62 |he short| id of b|
|00001400| 74 6e 20 22 50 69 63 74 | 75 72 65 22 20 69 6e 74 |tn "Pict|ure" int|
|00001410| 6f 20 62 74 6e 49 64 0d | 70 75 74 20 64 6f 52 75 |o btnId.|put doRu|
|00001420| 6e 41 72 6f 75 6e 64 28 | 61 6c 6c 54 65 78 74 2c |nAround(|allText,|
|00001430| 62 74 6e 49 64 2c 74 68 | 65 52 65 74 75 72 6e 73 |btnId,th|eReturns|
|00001440| 2c 74 68 65 46 6f 6e 74 | 2c 74 68 65 53 69 7a 65 |,theFont|,theSize|
|00001450| 2c 74 68 65 54 6f 74 61 | 6c 4c 69 6e 65 73 2c 74 |,theTota|lLines,t|
|00001460| 68 65 4c 65 61 64 29 20 | 69 6e 74 6f 20 61 6c 6c |heLead) |into all|
|00001470| 54 65 78 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |Text.end| if.end |
|00001480| 69 66 0d 70 75 74 20 6c | 69 6e 65 20 31 20 74 6f |if.put l|ine 1 to|
|00001490| 20 74 68 65 54 6f 74 61 | 6c 4c 69 6e 65 73 20 6f | theTota|lLines o|
|000014a0| 66 20 61 6c 6c 54 65 78 | 74 20 69 6e 74 6f 20 66 |f allTex|t into f|
|000014b0| 6c 64 20 22 42 6f 64 79 | 22 0d 73 65 74 20 74 68 |ld "Body|".set th|
|000014c0| 65 20 73 74 79 6c 65 20 | 6f 66 20 66 6c 64 20 22 |e style |of fld "|
|000014d0| 42 6f 64 79 22 20 74 6f | 20 22 54 72 61 6e 73 70 |Body" to| "Transp|
|000014e0| 61 72 65 6e 74 22 0d 64 | 65 6c 65 74 65 20 6c 69 |arent".d|elete li|
|000014f0| 6e 65 20 31 20 74 6f 20 | 74 68 65 54 6f 74 61 6c |ne 1 to |theTotal|
|00001500| 4c 69 6e 65 73 20 6f 66 | 20 61 6c 6c 54 65 78 74 |Lines of| allText|
|00001510| 0d 69 66 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |.if the |number o|
|00001520| 66 20 6c 69 6e 65 73 20 | 6f 66 20 61 6c 6c 54 65 |f lines |of allTe|
|00001530| 78 74 20 3c 3d 20 30 20 | 74 68 65 6e 20 65 78 69 |xt <= 0 |then exi|
|00001540| 74 20 72 65 70 65 61 74 | 0d 67 6f 20 6e 65 78 74 |t repeat|.go next|
|00001550| 20 6d 61 72 6b 65 64 20 | 63 64 0d 69 66 20 74 68 | marked |cd.if th|
|00001560| 65 20 69 64 20 6f 66 20 | 74 68 69 73 20 63 64 20 |e id of |this cd |
|00001570| 69 73 20 74 68 65 20 69 | 64 20 6f 66 20 74 68 65 |is the i|d of the|
|00001580| 20 66 69 72 73 74 20 6d | 61 72 6b 65 64 20 63 64 | first m|arked cd|
|00001590| 20 74 68 65 6e 0d 67 6f | 20 6c 61 73 74 20 6d 61 | then.go| last ma|
|000015a0| 72 6b 65 64 20 63 64 0d | 64 6f 4d 65 6e 75 20 22 |rked cd.|doMenu "|
|000015b0| 4e 65 77 20 43 61 72 64 | 22 0d 6d 61 72 6b 20 74 |New Card|".mark t|
|000015c0| 68 69 73 20 63 64 0d 65 | 6e 64 20 69 66 0d 70 75 |his cd.e|nd if.pu|
|000015d0| 74 20 22 57 72 69 74 69 | 6e 67 20 70 61 67 65 22 |t "Writi|ng page"|
|000015e0| 20 26 26 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | && the |number o|
|000015f0| 66 20 74 68 69 73 20 63 | 64 0d 70 75 74 20 74 68 |f this c|d.put th|
|00001600| 69 73 43 68 61 70 74 65 | 72 20 69 6e 74 6f 20 66 |isChapte|r into f|
|00001610| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|00001620| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 67 6f 20 66 |.end rep|eat.go f|
|00001630| 69 72 73 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 72 |irst mar|ked cd.r|
|00001640| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|00001650| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00001660| 66 20 6d 61 72 6b 65 64 | 20 63 64 73 0d 69 66 20 |f marked| cds.if |
|00001670| 66 6c 64 20 22 42 6f 64 | 79 22 20 69 73 20 65 6d |fld "Bod|y" is em|
|00001680| 70 74 79 20 61 6e 64 20 | 6e 6f 74 20 74 68 65 20 |pty and |not the |
|00001690| 68 69 67 68 6c 69 67 68 | 74 20 6f 66 20 62 67 20 |highligh|t of bg |
|000016a0| 62 74 6e 20 22 4c 6f 63 | 6b 50 61 67 65 22 20 74 |btn "Loc|kPage" t|
|000016b0| 68 65 6e 0d 64 6f 4d 65 | 6e 75 20 22 44 65 6c 65 |hen.doMe|nu "Dele|
|000016c0| 74 65 20 43 61 72 64 22 | 0d 65 6e 64 20 69 66 0d |te Card"|.end if.|
|000016d0| 67 6f 20 6e 65 78 74 20 | 6d 61 72 6b 65 64 20 63 |go next |marked c|
|000016e0| 64 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 75 6e 6c |d.end re|peat.unl|
|000016f0| 6f 63 6b 20 6d 65 73 73 | 61 67 65 73 0d 69 66 20 |ock mess|ages.if |
|00001700| 74 68 65 72 65 20 69 73 | 20 61 20 63 64 20 69 64 |there is| a cd id|
|00001710| 20 73 74 61 72 74 43 64 | 49 64 20 74 68 65 6e 20 | startCd|Id then |
|00001720| 67 6f 20 63 64 20 69 64 | 20 73 74 61 72 74 43 64 |go cd id| startCd|
|00001730| 49 64 0d 65 6c 73 65 20 | 67 6f 20 66 69 72 73 74 |Id.else |go first|
|00001740| 20 6d 61 72 6b 65 64 20 | 63 64 0d 73 65 74 20 74 | marked |cd.set t|
|00001750| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 6d 73 |he visib|le of ms|
|00001760| 67 20 74 6f 20 6d 56 69 | 73 0d 73 65 74 20 74 68 |g to mVi|s.set th|
|00001770| 65 20 63 68 65 63 6b 4d | 61 72 6b 20 6f 66 20 6d |e checkM|ark of m|
|00001780| 65 6e 75 49 74 65 6d 20 | 31 31 20 6f 66 20 6d 65 |enuItem |11 of me|
|00001790| 6e 75 20 22 4c 61 79 6f | 75 74 22 20 74 6f 20 66 |nu "Layo|ut" to f|
|000017a0| 61 6c 73 65 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |alse.put| empty i|
|000017b0| 6e 74 6f 20 74 68 65 43 | 6f 72 6e 65 72 0d 69 66 |nto theC|orner.if|
|000017c0| 20 74 68 65 54 6f 6f 6c | 20 69 73 20 22 50 69 63 | theTool| is "Pic|
|000017d0| 74 75 72 65 54 6f 6f 6c | 22 20 74 68 65 6e 20 62 |tureTool|" then b|
|000017e0| 75 74 74 6f 6e 31 0d 73 | 65 6e 64 20 6f 70 65 6e |utton1.s|end open|
|000017f0| 43 61 72 64 20 74 6f 20 | 74 68 69 73 20 62 67 0d |Card to |this bg.|
|00001800| 65 6e 64 20 64 6f 55 70 | 64 61 74 65 0d 0d 66 75 |end doUp|date..fu|
|00001810| 6e 63 74 69 6f 6e 20 64 | 6f 52 75 6e 41 72 6f 75 |nction d|oRunArou|
|00001820| 6e 64 20 74 68 65 54 65 | 78 74 2c 72 75 6e 41 72 |nd theTe|xt,runAr|
|00001830| 6f 75 6e 64 42 74 6e 2c | 77 68 61 74 72 65 74 75 |oundBtn,|whatretu|
|00001840| 72 6e 73 2c 74 68 65 46 | 6f 6e 74 2c 74 68 65 53 |rns,theF|ont,theS|
|00001850| 69 7a 65 2c 74 68 65 54 | 6f 74 61 6c 4c 69 6e 65 |ize,theT|otalLine|
|00001860| 73 2c 74 68 65 4c 65 61 | 64 0d 70 75 74 20 74 68 |s,theLea|d.put th|
|00001870| 65 54 65 78 74 20 69 6e | 74 6f 20 72 65 46 6c 6f |eText in|to reFlo|
|00001880| 77 65 64 54 65 78 74 0d | 70 75 74 20 30 20 69 6e |wedText.|put 0 in|
|00001890| 74 6f 20 66 72 6f 6d 54 | 68 65 54 6f 70 0d 70 75 |to fromT|heTop.pu|
|000018a0| 74 20 22 52 65 66 6c 6f | 77 69 6e 67 20 72 75 6e |t "Reflo|wing run|
|000018b0| 2d 61 72 6f 75 6e 64 2e | 22 0d 70 75 74 20 74 68 |-around.|".put th|
|000018c0| 65 20 72 65 63 74 20 6f | 66 20 62 74 6e 20 69 64 |e rect o|f btn id|
|000018d0| 20 72 75 6e 41 72 6f 75 | 6e 64 42 74 6e 20 69 6e | runArou|ndBtn in|
|000018e0| 74 6f 20 74 68 65 50 69 | 63 0d 70 75 74 20 74 68 |to thePi|c.put th|
|000018f0| 65 20 77 69 64 74 68 20 | 6f 66 20 62 74 6e 20 69 |e width |of btn i|
|00001900| 64 20 72 75 6e 41 72 6f | 75 6e 64 42 74 6e 20 69 |d runAro|undBtn i|
|00001910| 6e 74 6f 20 74 68 65 52 | 75 6e 57 69 64 74 68 0d |nto theR|unWidth.|
|00001920| 69 66 20 69 74 65 6d 20 | 32 20 6f 66 20 74 68 65 |if item |2 of the|
|00001930| 50 69 63 20 3e 20 32 39 | 20 74 68 65 6e 0d 69 66 |Pic > 29| then.if|
|00001940| 20 69 74 65 6d 20 32 20 | 6f 66 20 74 68 65 50 69 | item 2 |of thePi|
|00001950| 63 20 3e 20 37 39 20 74 | 68 65 6e 0d 70 75 74 20 |c > 79 t|hen.put |
|00001960| 28 69 74 65 6d 20 32 20 | 6f 66 20 74 68 65 50 69 |(item 2 |of thePi|
|00001970| 63 29 20 2d 20 36 33 20 | 69 6e 74 6f 20 74 6f 70 |c) - 63 |into top|
|00001980| 4c 69 6e 65 73 0d 70 75 | 74 20 74 72 75 6e 63 28 |Lines.pu|t trunc(|
|00001990| 74 6f 70 4c 69 6e 65 73 | 20 2f 20 74 68 65 4c 65 |topLines| / theLe|
|000019a0| 61 64 29 20 69 6e 74 6f | 20 66 72 6f 6d 54 68 65 |ad) into| fromThe|
|000019b0| 54 6f 70 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 28 |Top.end |if.put (|
|000019c0| 69 74 65 6d 20 34 20 6f | 66 20 74 68 65 50 69 63 |item 4 o|f thePic|
|000019d0| 29 20 2d 20 35 36 20 69 | 6e 74 6f 20 74 6f 74 48 |) - 56 i|nto totH|
|000019e0| 69 0d 70 75 74 20 28 74 | 6f 74 48 69 20 2f 20 74 |i.put (t|otHi / t|
|000019f0| 68 65 4c 65 61 64 29 20 | 69 6e 74 6f 20 74 68 65 |heLead) |into the|
|00001a00| 4c 69 6e 65 73 0d 69 66 | 20 74 72 75 6e 63 28 74 |Lines.if| trunc(t|
|00001a10| 68 65 4c 69 6e 65 73 29 | 20 ad 20 74 68 65 4c 69 |heLines)| . theLi|
|00001a20| 6e 65 73 20 74 68 65 6e | 20 61 64 64 20 31 20 74 |nes then| add 1 t|
|00001a30| 6f 20 74 68 65 4c 69 6e | 65 73 0d 70 75 74 20 74 |o theLin|es.put t|
|00001a40| 72 75 6e 63 28 74 68 65 | 4c 69 6e 65 73 29 20 69 |runc(the|Lines) i|
|00001a50| 6e 74 6f 20 74 6f 74 4c | 69 6e 65 73 0d 69 66 20 |nto totL|ines.if |
|00001a60| 74 6f 74 4c 69 6e 65 73 | 20 3e 20 74 68 65 54 6f |totLines| > theTo|
|00001a70| 74 61 6c 4c 69 6e 65 73 | 20 74 68 65 6e 0d 70 75 |talLines| then.pu|
|00001a80| 74 20 74 68 65 54 6f 74 | 61 6c 4c 69 6e 65 73 20 |t theTot|alLines |
|00001a90| 69 6e 74 6f 20 74 6f 74 | 4c 69 6e 65 73 0d 65 6e |into tot|Lines.en|
|00001aa0| 64 20 69 66 0d 65 6c 73 | 65 0d 65 78 69 74 20 64 |d if.els|e.exit d|
|00001ab0| 6f 52 75 6e 41 72 6f 75 | 6e 64 0d 65 6e 64 20 69 |oRunArou|nd.end i|
|00001ac0| 66 0d 70 75 74 20 69 74 | 65 6d 20 33 20 6f 66 20 |f.put it|em 3 of |
|00001ad0| 74 68 65 50 69 63 20 2d | 20 39 35 20 69 6e 74 6f |thePic -| 95 into|
|00001ae0| 20 74 6f 74 57 69 64 65 | 0d 70 75 74 20 22 2e 33 | totWide|.put ".3|
|00001af0| 33 22 20 69 6e 74 6f 20 | 74 68 65 46 61 63 74 6f |3" into |theFacto|
|00001b00| 72 0d 69 66 20 74 68 65 | 46 6f 6e 74 20 69 73 20 |r.if the|Font is |
|00001b10| 22 48 65 6c 76 65 74 69 | 63 61 22 20 74 68 65 6e |"Helveti|ca" then|
|00001b20| 20 70 75 74 20 22 2e 33 | 33 35 22 20 69 6e 74 6f | put ".3|35" into|
|00001b30| 20 74 68 65 46 61 63 74 | 6f 72 0d 69 66 20 74 68 | theFact|or.if th|
|00001b40| 65 46 6f 6e 74 20 69 73 | 20 22 4e 65 77 20 59 6f |eFont is| "New Yo|
|00001b50| 72 6b 22 20 74 68 65 6e | 20 70 75 74 20 22 2e 32 |rk" then| put ".2|
|00001b60| 35 33 22 20 69 6e 74 6f | 20 74 68 65 46 61 63 74 |53" into| theFact|
|00001b70| 6f 72 0d 69 66 20 74 68 | 65 46 6f 6e 74 20 69 73 |or.if th|eFont is|
|00001b80| 20 22 50 61 6c 61 74 69 | 6e 6f 22 20 74 68 65 6e | "Palati|no" then|
|00001b90| 20 70 75 74 20 22 2e 33 | 34 22 20 69 6e 74 6f 20 | put ".3|4" into |
|00001ba0| 74 68 65 46 61 63 74 6f | 72 0d 69 66 20 74 68 65 |theFacto|r.if the|
|00001bb0| 46 6f 6e 74 20 69 73 20 | 22 54 69 6d 65 73 22 20 |Font is |"Times" |
|00001bc0| 74 68 65 6e 20 70 75 74 | 20 22 2e 32 35 35 22 20 |then put| ".255" |
|00001bd0| 69 6e 74 6f 20 74 68 65 | 46 61 63 74 6f 72 0d 70 |into the|Factor.p|
|00001be0| 75 74 20 31 20 69 6e 74 | 6f 20 73 70 61 63 65 53 |ut 1 int|o spaceS|
|00001bf0| 69 7a 65 0d 69 66 20 74 | 68 65 53 69 7a 65 20 3d |ize.if t|heSize =|
|00001c00| 20 31 30 20 74 68 65 6e | 20 70 75 74 20 22 31 2e | 10 then| put "1.|
|00001c10| 34 35 22 20 69 6e 74 6f | 20 73 70 61 63 65 53 69 |45" into| spaceSi|
|00001c20| 7a 65 0d 69 66 20 74 68 | 65 53 69 7a 65 20 3d 20 |ze.if th|eSize = |
|00001c30| 31 32 20 74 68 65 6e 20 | 70 75 74 20 22 31 2e 30 |12 then |put "1.0|
|00001c40| 32 22 20 69 6e 74 6f 20 | 73 70 61 63 65 53 69 7a |2" into |spaceSiz|
|00001c50| 65 0d 69 66 20 74 68 65 | 53 69 7a 65 20 3d 20 31 |e.if the|Size = 1|
|00001c60| 36 20 74 68 65 6e 20 70 | 75 74 20 22 31 22 20 69 |6 then p|ut "1" i|
|00001c70| 6e 74 6f 20 73 70 61 63 | 65 53 69 7a 65 0d 70 75 |nto spac|eSize.pu|
|00001c80| 74 20 74 72 75 6e 63 28 | 74 6f 74 57 69 64 65 20 |t trunc(|totWide |
|00001c90| 2a 20 74 68 65 46 61 63 | 74 6f 72 20 2a 20 73 70 |* theFac|tor * sp|
|00001ca0| 61 63 65 53 69 7a 65 29 | 20 69 6e 74 6f 20 74 68 |aceSize)| into th|
|00001cb0| 65 53 70 61 63 65 73 0d | 69 66 20 74 68 65 53 70 |eSpaces.|if theSp|
|00001cc0| 61 63 65 73 20 3e 20 30 | 20 74 68 65 6e 0d 72 65 |aces > 0| then.re|
|00001cd0| 70 65 61 74 20 77 69 74 | 68 20 78 20 3d 20 31 20 |peat wit|h x = 1 |
|00001ce0| 74 6f 20 74 68 65 53 70 | 61 63 65 73 0d 70 75 74 |to theSp|aces.put|
|00001cf0| 20 22 20 22 20 61 66 74 | 65 72 20 74 6f 74 53 70 | " " aft|er totSp|
|00001d00| 61 63 65 73 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |aces.end| repeat.|
|00001d10| 65 6c 73 65 0d 70 75 74 | 20 22 22 20 69 6e 74 6f |else.put| "" into|
|00001d20| 20 74 6f 74 53 70 61 63 | 65 73 0d 65 6e 64 20 69 | totSpac|es.end i|
|00001d30| 66 0d 70 75 74 20 22 50 | 61 67 69 6e 61 74 69 6e |f.put "P|aginatin|
|00001d40| 67 20 74 65 78 74 2c 20 | 70 6c 65 61 73 65 20 73 |g text, |please s|
|00001d50| 74 61 6e 64 20 62 79 2e | 22 0d 70 75 74 20 72 65 |tand by.|".put re|
|00001d60| 74 75 72 6e 73 4f 75 74 | 28 74 68 65 54 65 78 74 |turnsOut|(theText|
|00001d70| 29 20 69 6e 74 6f 20 74 | 68 65 54 65 78 74 0d 70 |) into t|heText.p|
|00001d80| 75 74 20 66 6f 72 6d 61 | 74 54 65 78 74 28 74 68 |ut forma|tText(th|
|00001d90| 65 54 65 78 74 29 20 69 | 6e 74 6f 20 74 68 65 54 |eText) i|nto theT|
|00001da0| 65 78 74 0d 69 66 20 66 | 72 6f 6d 54 68 65 54 6f |ext.if f|romTheTo|
|00001db0| 70 20 ad 20 30 20 74 68 | 65 6e 0d 72 65 70 65 61 |p . 0 th|en.repea|
|00001dc0| 74 20 77 69 74 68 20 7a | 20 3d 20 31 20 74 6f 20 |t with z| = 1 to |
|00001dd0| 66 72 6f 6d 54 68 65 54 | 6f 70 0d 72 65 70 65 61 |fromTheT|op.repea|
|00001de0| 74 0d 69 66 20 63 68 61 | 72 20 31 20 6f 66 20 6c |t.if cha|r 1 of l|
|00001df0| 69 6e 65 20 31 20 6f 66 | 20 74 68 65 54 65 78 74 |ine 1 of| theText|
|00001e00| 20 69 73 20 22 20 22 20 | 74 68 65 6e 0d 64 65 6c | is " " |then.del|
|00001e10| 65 74 65 20 63 68 61 72 | 20 31 20 6f 66 20 6c 69 |ete char| 1 of li|
|00001e20| 6e 65 20 31 20 6f 66 20 | 74 68 65 54 65 78 74 0d |ne 1 of |theText.|
|00001e30| 65 6c 73 65 0d 65 78 69 | 74 20 72 65 70 65 61 74 |else.exi|t repeat|
|00001e40| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00001e50| 61 74 0d 70 75 74 20 77 | 6f 72 64 57 72 61 70 28 |at.put w|ordWrap(|
|00001e60| 6c 69 6e 65 20 31 20 6f | 66 20 74 68 65 54 65 78 |line 1 o|f theTex|
|00001e70| 74 2c 28 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 |t,(the w|idth of |
|00001e80| 66 6c 64 20 22 42 6f 64 | 79 22 20 2d 20 28 74 68 |fld "Bod|y" - (th|
|00001e90| 65 53 69 7a 65 20 2b 20 | 31 30 29 29 2c 74 68 65 |eSize + |10)),the|
|00001ea0| 46 6f 6e 74 2c 74 68 65 | 53 69 7a 65 2c 70 6c 61 |Font,the|Size,pla|
|00001eb0| 69 6e 29 20 69 6e 74 6f | 20 6c 69 6e 65 20 7a 20 |in) into| line z |
|00001ec0| 6f 66 20 72 65 46 6c 6f | 77 65 64 54 65 78 74 0d |of reFlo|wedText.|
|00001ed0| 64 65 6c 65 74 65 20 63 | 68 61 72 20 31 20 74 6f |delete c|har 1 to|
|00001ee0| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|00001ef0| 63 68 61 72 73 20 6f 66 | 20 6c 69 6e 65 20 7a 20 |chars of| line z |
|00001f00| 6f 66 20 72 65 46 6c 6f | 77 65 64 54 65 78 74 29 |of reFlo|wedText)|
|00001f10| 20 6f 66 20 74 68 65 54 | 65 78 74 0d 69 66 20 63 | of theT|ext.if c|
|00001f20| 68 61 72 20 31 20 6f 66 | 20 74 68 65 54 65 78 74 |har 1 of| theText|
|00001f30| 20 69 73 20 72 65 74 75 | 72 6e 20 74 68 65 6e 20 | is retu|rn then |
|00001f40| 64 65 6c 65 74 65 20 63 | 68 61 72 20 31 20 6f 66 |delete c|har 1 of|
|00001f50| 20 74 68 65 54 65 78 74 | 0d 65 6e 64 20 72 65 70 | theText|.end rep|
|00001f60| 65 61 74 0d 65 6e 64 20 | 69 66 0d 69 66 20 69 74 |eat.end |if.if it|
|00001f70| 65 6d 20 31 20 6f 66 20 | 74 68 65 50 69 63 20 3c |em 1 of |thePic <|
|00001f80| 20 31 32 30 20 74 68 65 | 6e 0d 72 65 70 65 61 74 | 120 the|n.repeat|
|00001f90| 20 77 69 74 68 20 79 20 | 3d 20 28 31 20 2b 20 66 | with y |= (1 + f|
|00001fa0| 72 6f 6d 54 68 65 54 6f | 70 29 20 74 6f 20 74 6f |romTheTo|p) to to|
|00001fb0| 74 4c 69 6e 65 73 0d 72 | 65 70 65 61 74 0d 69 66 |tLines.r|epeat.if|
|00001fc0| 20 63 68 61 72 20 31 20 | 6f 66 20 6c 69 6e 65 20 | char 1 |of line |
|00001fd0| 31 20 6f 66 20 74 68 65 | 54 65 78 74 20 69 73 20 |1 of the|Text is |
|00001fe0| 22 20 22 20 74 68 65 6e | 0d 64 65 6c 65 74 65 20 |" " then|.delete |
|00001ff0| 63 68 61 72 20 31 20 6f | 66 20 6c 69 6e 65 20 31 |char 1 o|f line 1|
|00002000| 20 6f 66 20 74 68 65 54 | 65 78 74 0d 65 6c 73 65 | of theT|ext.else|
|00002010| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|00002020| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 | if.end |repeat.i|
|00002030| 66 20 74 68 65 52 75 6e | 57 69 64 74 68 20 3e 20 |f theRun|Width > |
|00002040| 33 32 30 20 74 68 65 6e | 0d 70 75 74 20 72 65 74 |320 then|.put ret|
|00002050| 75 72 6e 20 62 65 66 6f | 72 65 20 6c 69 6e 65 20 |urn befo|re line |
|00002060| 79 20 6f 66 20 72 65 46 | 6c 6f 77 65 64 54 65 78 |y of reF|lowedTex|
|00002070| 74 0d 65 6c 73 65 0d 70 | 75 74 20 74 6f 74 53 70 |t.else.p|ut totSp|
|00002080| 61 63 65 73 20 62 65 66 | 6f 72 65 20 6c 69 6e 65 |aces bef|ore line|
|00002090| 20 31 20 6f 66 20 74 68 | 65 54 65 78 74 0d 70 75 | 1 of th|eText.pu|
|000020a0| 74 20 77 6f 72 64 57 72 | 61 70 28 6c 69 6e 65 20 |t wordWr|ap(line |
|000020b0| 31 20 6f 66 20 74 68 65 | 54 65 78 74 2c 28 74 68 |1 of the|Text,(th|
|000020c0| 65 20 77 69 64 74 68 20 | 6f 66 20 66 6c 64 20 22 |e width |of fld "|
|000020d0| 42 6f 64 79 22 20 2d 20 | 28 74 68 65 53 69 7a 65 |Body" - |(theSize|
|000020e0| 20 2b 20 31 30 29 29 2c | 74 68 65 46 6f 6e 74 2c | + 10)),|theFont,|
|000020f0| 74 68 65 53 69 7a 65 2c | 70 6c 61 69 6e 29 20 69 |theSize,|plain) i|
|00002100| 6e 74 6f 20 6c 69 6e 65 | 20 79 20 6f 66 20 72 65 |nto line| y of re|
|00002110| 46 6c 6f 77 65 64 54 65 | 78 74 0d 64 65 6c 65 74 |FlowedTe|xt.delet|
|00002120| 65 20 63 68 61 72 20 31 | 20 74 6f 20 28 74 68 65 |e char 1| to (the|
|00002130| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 73 | number |of chars|
|00002140| 20 6f 66 20 6c 69 6e 65 | 20 79 20 6f 66 20 72 65 | of line| y of re|
|00002150| 46 6c 6f 77 65 64 54 65 | 78 74 29 20 6f 66 20 74 |FlowedTe|xt) of t|
|00002160| 68 65 54 65 78 74 0d 69 | 66 20 63 68 61 72 20 31 |heText.i|f char 1|
|00002170| 20 6f 66 20 74 68 65 54 | 65 78 74 20 69 73 20 72 | of theT|ext is r|
|00002180| 65 74 75 72 6e 20 74 68 | 65 6e 0d 64 65 6c 65 74 |eturn th|en.delet|
|00002190| 65 20 63 68 61 72 20 31 | 20 6f 66 20 74 68 65 54 |e char 1| of theT|
|000021a0| 65 78 74 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |ext.end |if.end i|
|000021b0| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6c 73 |f.end re|peat.els|
|000021c0| 65 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 79 20 |e.repeat| with y |
|000021d0| 3d 20 28 31 20 2b 20 66 | 72 6f 6d 54 68 65 54 6f |= (1 + f|romTheTo|
|000021e0| 70 29 20 74 6f 20 74 6f | 74 4c 69 6e 65 73 0d 72 |p) to to|tLines.r|
|000021f0| 65 70 65 61 74 0d 69 66 | 20 63 68 61 72 20 31 20 |epeat.if| char 1 |
|00002200| 6f 66 20 6c 69 6e 65 20 | 31 20 6f 66 20 74 68 65 |of line |1 of the|
|00002210| 54 65 78 74 20 69 73 20 | 22 20 22 20 74 68 65 6e |Text is |" " then|
|00002220| 0d 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 6f |.delete |char 1 o|
|00002230| 66 20 6c 69 6e 65 20 31 | 20 6f 66 20 74 68 65 54 |f line 1| of theT|
|00002240| 65 78 74 0d 65 6c 73 65 | 0d 65 78 69 74 20 72 65 |ext.else|.exit re|
|00002250| 70 65 61 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |peat.end| if.end |
|00002260| 72 65 70 65 61 74 0d 69 | 66 20 74 68 65 20 77 69 |repeat.i|f the wi|
|00002270| 64 74 68 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |dth of f|ld "Body|
|00002280| 22 20 3c 20 69 74 65 6d | 20 31 20 6f 66 20 74 68 |" < item| 1 of th|
|00002290| 65 50 69 63 20 2d 20 39 | 35 20 74 68 65 6e 20 70 |ePic - 9|5 then p|
|000022a0| 75 74 20 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 |ut the w|idth of |
|000022b0| 66 6c 64 20 22 42 6f 64 | 79 22 20 69 6e 74 6f 20 |fld "Bod|y" into |
|000022c0| 74 68 65 57 69 64 74 68 | 0d 65 6c 73 65 20 70 75 |theWidth|.else pu|
|000022d0| 74 20 69 74 65 6d 20 31 | 20 6f 66 20 74 68 65 50 |t item 1| of theP|
|000022e0| 69 63 20 2d 20 39 35 20 | 69 6e 74 6f 20 74 68 65 |ic - 95 |into the|
|000022f0| 57 69 64 74 68 0d 69 66 | 20 74 68 65 52 75 6e 57 |Width.if| theRunW|
|00002300| 69 64 74 68 20 3e 20 33 | 32 30 20 74 68 65 6e 0d |idth > 3|20 then.|
|00002310| 70 75 74 20 72 65 74 75 | 72 6e 20 62 65 66 6f 72 |put retu|rn befor|
|00002320| 65 20 6c 69 6e 65 20 79 | 20 6f 66 20 72 65 46 6c |e line y| of reFl|
|00002330| 6f 77 65 64 54 65 78 74 | 0d 65 6c 73 65 0d 70 75 |owedText|.else.pu|
|00002340| 74 20 77 6f 72 64 57 72 | 61 70 28 6c 69 6e 65 20 |t wordWr|ap(line |
|00002350| 31 20 6f 66 20 74 68 65 | 54 65 78 74 2c 74 68 65 |1 of the|Text,the|
|00002360| 57 69 64 74 68 2c 74 68 | 65 46 6f 6e 74 2c 74 68 |Width,th|eFont,th|
|00002370| 65 53 69 7a 65 2c 70 6c | 61 69 6e 29 20 69 6e 74 |eSize,pl|ain) int|
|00002380| 6f 20 6c 69 6e 65 20 79 | 20 6f 66 20 72 65 46 6c |o line y| of reFl|
|00002390| 6f 77 65 64 54 65 78 74 | 0d 64 65 6c 65 74 65 20 |owedText|.delete |
|000023a0| 63 68 61 72 20 31 20 74 | 6f 20 28 74 68 65 20 6e |char 1 t|o (the n|
|000023b0| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 73 20 6f |umber of| chars o|
|000023c0| 66 20 6c 69 6e 65 20 79 | 20 6f 66 20 72 65 46 6c |f line y| of reFl|
|000023d0| 6f 77 65 64 54 65 78 74 | 29 20 6f 66 20 74 68 65 |owedText|) of the|
|000023e0| 54 65 78 74 0d 69 66 20 | 63 68 61 72 20 31 20 6f |Text.if |char 1 o|
|000023f0| 66 20 74 68 65 54 65 78 | 74 20 69 73 20 72 65 74 |f theTex|t is ret|
|00002400| 75 72 6e 20 74 68 65 6e | 20 64 65 6c 65 74 65 20 |urn then| delete |
|00002410| 63 68 61 72 20 31 20 6f | 66 20 74 68 65 54 65 78 |char 1 o|f theTex|
|00002420| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |t.end if|.end rep|
|00002430| 65 61 74 0d 65 6e 64 20 | 69 66 0d 69 66 20 74 68 |eat.end |if.if th|
|00002440| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|00002450| 73 20 6f 66 20 74 68 65 | 54 65 78 74 20 3d 20 30 |s of the|Text = 0|
|00002460| 20 74 68 65 6e 0d 70 75 | 74 20 6c 69 6e 65 20 31 | then.pu|t line 1|
|00002470| 20 74 6f 20 74 6f 74 4c | 69 6e 65 73 20 6f 66 20 | to totL|ines of |
|00002480| 72 65 46 6c 6f 77 65 64 | 54 65 78 74 20 26 20 72 |reFlowed|Text & r|
|00002490| 65 74 75 72 6e 20 69 6e | 74 6f 20 72 75 6e 41 72 |eturn in|to runAr|
|000024a0| 6f 75 6e 64 54 65 78 74 | 0d 65 6c 73 65 0d 72 65 |oundText|.else.re|
|000024b0| 70 65 61 74 20 77 69 74 | 68 20 77 20 3d 20 31 20 |peat wit|h w = 1 |
|000024c0| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|000024d0| 20 6c 69 6e 65 73 20 6f | 66 20 74 68 65 54 65 78 | lines o|f theTex|
|000024e0| 74 0d 70 75 74 20 77 6f | 72 64 57 72 61 70 28 6c |t.put wo|rdWrap(l|
|000024f0| 69 6e 65 20 77 20 6f 66 | 20 74 68 65 54 65 78 74 |ine w of| theText|
|00002500| 2c 28 74 68 65 20 77 69 | 64 74 68 20 6f 66 20 66 |,(the wi|dth of f|
|00002510| 6c 64 20 22 42 6f 64 79 | 22 20 2d 20 28 74 68 65 |ld "Body|" - (the|
|00002520| 53 69 7a 65 20 2b 20 31 | 30 29 29 2c 74 68 65 46 |Size + 1|0)),theF|
|00002530| 6f 6e 74 2c 74 68 65 53 | 69 7a 65 2c 70 6c 61 69 |ont,theS|ize,plai|
|00002540| 6e 29 20 26 20 72 65 74 | 75 72 6e 20 61 66 74 65 |n) & ret|urn afte|
|00002550| 72 20 6f 76 65 72 54 65 | 78 74 0d 72 65 70 65 61 |r overTe|xt.repea|
|00002560| 74 0d 69 66 20 63 68 61 | 72 20 31 20 6f 66 20 6c |t.if cha|r 1 of l|
|00002570| 69 6e 65 20 31 20 6f 66 | 20 6f 76 65 72 54 65 78 |ine 1 of| overTex|
|00002580| 74 20 69 73 20 22 20 22 | 20 74 68 65 6e 0d 64 65 |t is " "| then.de|
|00002590| 6c 65 74 65 20 63 68 61 | 72 20 31 20 6f 66 20 6c |lete cha|r 1 of l|
|000025a0| 69 6e 65 20 31 20 6f 66 | 20 6f 76 65 72 54 65 78 |ine 1 of| overTex|
|000025b0| 74 0d 65 6c 73 65 0d 65 | 78 69 74 20 72 65 70 65 |t.else.e|xit repe|
|000025c0| 61 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |at.end i|f.end re|
|000025d0| 70 65 61 74 0d 70 75 74 | 20 6c 69 6e 65 20 31 20 |peat.put| line 1 |
|000025e0| 74 6f 20 74 6f 74 4c 69 | 6e 65 73 20 6f 66 20 72 |to totLi|nes of r|
|000025f0| 65 46 6c 6f 77 65 64 54 | 65 78 74 20 26 20 72 65 |eFlowedT|ext & re|
|00002600| 74 75 72 6e 20 26 20 6f | 76 65 72 54 65 78 74 20 |turn & o|verText |
|00002610| 69 6e 74 6f 20 72 75 6e | 41 72 6f 75 6e 64 54 65 |into run|AroundTe|
|00002620| 78 74 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |xt.end r|epeat.en|
|00002630| 64 20 69 66 0d 72 65 74 | 75 72 6e 20 72 75 6e 41 |d if.ret|urn runA|
|00002640| 72 6f 75 6e 64 54 65 78 | 74 0d 65 6e 64 20 64 6f |roundTex|t.end do|
|00002650| 52 75 6e 41 72 6f 75 6e | 64 0d 0d 0d 66 75 6e 63 |RunAroun|d...func|
|00002660| 74 69 6f 6e 20 66 6f 72 | 6d 61 74 54 65 78 74 20 |tion for|matText |
|00002670| 77 68 61 74 54 65 78 74 | 0d 70 75 74 20 30 20 69 |whatText|.put 0 i|
|00002680| 6e 74 6f 20 74 68 65 49 | 6e 64 65 6e 74 73 0d 70 |nto theI|ndents.p|
|00002690| 75 74 20 30 20 69 6e 74 | 6f 20 74 68 65 52 65 74 |ut 0 int|o theRet|
|000026a0| 75 72 6e 73 0d 72 65 70 | 65 61 74 20 77 68 69 6c |urns.rep|eat whil|
|000026b0| 65 20 6f 66 66 73 65 74 | 28 74 61 62 2c 77 68 61 |e offset|(tab,wha|
|000026c0| 74 54 65 78 74 29 20 3c | 3e 20 30 0d 69 66 20 63 |tText) <|> 0.if c|
|000026d0| 68 61 72 20 6f 66 66 73 | 65 74 28 74 61 62 2c 77 |har offs|et(tab,w|
|000026e0| 68 61 74 54 65 78 74 29 | 20 74 6f 20 6f 66 66 73 |hatText)| to offs|
|000026f0| 65 74 28 74 61 62 2c 77 | 68 61 74 54 65 78 74 29 |et(tab,w|hatText)|
|00002700| 20 2b 20 35 20 6f 66 20 | 77 68 61 74 54 65 78 74 | + 5 of |whatText|
|00002710| 20 69 73 20 28 74 61 62 | 20 26 20 74 61 62 20 26 | is (tab| & tab &|
|00002720| 20 74 61 62 20 26 20 74 | 61 62 20 26 20 74 61 62 | tab & t|ab & tab|
|00002730| 20 26 20 74 61 62 29 20 | 74 68 65 6e 0d 70 75 74 | & tab) |then.put|
|00002740| 20 22 5c 22 20 69 6e 74 | 6f 20 63 68 61 72 20 6f | "\" int|o char o|
|00002750| 66 66 73 65 74 28 74 61 | 62 2c 77 68 61 74 54 65 |ffset(ta|b,whatTe|
|00002760| 78 74 29 20 74 6f 20 6f | 66 66 73 65 74 28 74 61 |xt) to o|ffset(ta|
|00002770| 62 2c 77 68 61 74 54 65 | 78 74 29 20 2b 20 35 20 |b,whatTe|xt) + 5 |
|00002780| 6f 66 20 77 68 61 74 54 | 65 78 74 0d 61 64 64 20 |of whatT|ext.add |
|00002790| 31 20 74 6f 20 74 68 65 | 49 6e 64 65 6e 74 73 0d |1 to the|Indents.|
|000027a0| 65 6c 73 65 0d 69 66 20 | 63 68 61 72 20 6f 66 66 |else.if |char off|
|000027b0| 73 65 74 28 74 61 62 2c | 77 68 61 74 54 65 78 74 |set(tab,|whatText|
|000027c0| 29 20 2b 20 31 20 6f 66 | 20 77 68 61 74 54 65 78 |) + 1 of| whatTex|
|000027d0| 74 20 69 73 20 72 65 74 | 75 72 6e 20 74 68 65 6e |t is ret|urn then|
|000027e0| 0d 70 75 74 20 22 7c 22 | 20 69 6e 74 6f 20 63 68 |.put "|"| into ch|
|000027f0| 61 72 20 6f 66 66 73 65 | 74 28 74 61 62 2c 77 68 |ar offse|t(tab,wh|
|00002800| 61 74 54 65 78 74 29 20 | 74 6f 20 6f 66 66 73 65 |atText) |to offse|
|00002810| 74 28 74 61 62 2c 77 68 | 61 74 54 65 78 74 29 20 |t(tab,wh|atText) |
|00002820| 2b 20 31 20 6f 66 20 77 | 68 61 74 54 65 78 74 0d |+ 1 of w|hatText.|
|00002830| 61 64 64 20 31 20 74 6f | 20 74 68 65 52 65 74 75 |add 1 to| theRetu|
|00002840| 72 6e 73 0d 65 6c 73 65 | 0d 69 66 20 63 68 61 72 |rns.else|.if char|
|00002850| 20 6f 66 66 73 65 74 28 | 74 61 62 2c 77 68 61 74 | offset(|tab,what|
|00002860| 54 65 78 74 29 20 2b 20 | 31 20 6f 66 20 77 68 61 |Text) + |1 of wha|
|00002870| 74 54 65 78 74 20 69 73 | 20 74 61 62 20 74 68 65 |tText is| tab the|
|00002880| 6e 0d 72 65 70 65 61 74 | 0d 69 66 20 63 68 61 72 |n.repeat|.if char|
|00002890| 20 6f 66 66 73 65 74 28 | 74 61 62 2c 77 68 61 74 | offset(|tab,what|
|000028a0| 54 65 78 74 29 20 2b 20 | 31 20 6f 66 20 77 68 61 |Text) + |1 of wha|
|000028b0| 74 54 65 78 74 20 69 73 | 20 6e 6f 74 20 74 61 62 |tText is| not tab|
|000028c0| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|000028d0| 74 0d 64 65 6c 65 74 65 | 20 63 68 61 72 20 6f 66 |t.delete| char of|
|000028e0| 66 73 65 74 28 74 61 62 | 2c 77 68 61 74 54 65 78 |fset(tab|,whatTex|
|000028f0| 74 29 20 2b 20 31 20 6f | 66 20 77 68 61 74 54 65 |t) + 1 o|f whatTe|
|00002900| 78 74 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 70 75 |xt.end r|epeat.pu|
|00002910| 74 20 22 5c 22 20 69 6e | 74 6f 20 63 68 61 72 20 |t "\" in|to char |
|00002920| 6f 66 66 73 65 74 28 74 | 61 62 2c 77 68 61 74 54 |offset(t|ab,whatT|
|00002930| 65 78 74 29 20 6f 66 20 | 77 68 61 74 54 65 78 74 |ext) of |whatText|
|00002940| 0d 61 64 64 20 31 20 74 | 6f 20 74 68 65 49 6e 64 |.add 1 t|o theInd|
|00002950| 65 6e 74 73 0d 65 6c 73 | 65 0d 70 75 74 20 22 7c |ents.els|e.put "||
|00002960| 22 20 69 6e 74 6f 20 63 | 68 61 72 20 6f 66 66 73 |" into c|har offs|
|00002970| 65 74 28 74 61 62 2c 77 | 68 61 74 54 65 78 74 29 |et(tab,w|hatText)|
|00002980| 20 6f 66 20 77 68 61 74 | 54 65 78 74 0d 61 64 64 | of what|Text.add|
|00002990| 20 31 20 74 6f 20 74 68 | 65 52 65 74 75 72 6e 73 | 1 to th|eReturns|
|000029a0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|000029b0| 6e 64 20 69 66 0d 70 75 | 74 20 22 4d 61 72 6b 69 |nd if.pu|t "Marki|
|000029c0| 6e 67 20 74 65 78 74 2c | 20 70 6c 65 61 73 65 20 |ng text,| please |
|000029d0| 73 74 61 6e 64 20 62 79 | 2e 20 22 20 26 20 74 68 |stand by|. " & th|
|000029e0| 65 52 65 74 75 72 6e 73 | 20 26 20 22 20 72 65 74 |eReturns| & " ret|
|000029f0| 75 72 6e 73 2c 20 22 20 | 26 20 74 68 65 49 6e 64 |urns, " |& theInd|
|00002a00| 65 6e 74 73 20 26 20 22 | 20 69 6e 64 65 6e 74 73 |ents & "| indents|
|00002a10| 2e 22 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 70 75 |.".end r|epeat.pu|
|00002a20| 74 20 22 52 65 2d 66 6f | 72 6d 61 74 74 69 6e 67 |t "Re-fo|rmatting|
|00002a30| 20 74 65 78 74 2c 20 70 | 6c 65 61 73 65 20 73 74 | text, p|lease st|
|00002a40| 61 6e 64 20 62 79 2e 22 | 0d 72 65 70 65 61 74 20 |and by."|.repeat |
|00002a50| 77 68 69 6c 65 20 6f 66 | 66 73 65 74 28 22 7c 22 |while of|fset("|"|
|00002a60| 2c 77 68 61 74 54 65 78 | 74 29 20 3c 3e 20 30 0d |,whatTex|t) <> 0.|
|00002a70| 70 75 74 20 6f 66 66 73 | 65 74 28 22 7c 22 2c 77 |put offs|et("|",w|
|00002a80| 68 61 74 54 65 78 74 29 | 20 69 6e 74 6f 20 6e 65 |hatText)| into ne|
|00002a90| 78 74 53 6c 61 73 68 0d | 70 75 74 20 74 61 62 20 |xtSlash.|put tab |
|00002aa0| 26 20 72 65 74 75 72 6e | 20 69 6e 74 6f 20 63 68 |& return| into ch|
|00002ab0| 61 72 20 6e 65 78 74 53 | 6c 61 73 68 20 6f 66 20 |ar nextS|lash of |
|00002ac0| 77 68 61 74 54 65 78 74 | 0d 69 66 20 63 68 61 72 |whatText|.if char|
|00002ad0| 20 6e 65 78 74 53 6c 61 | 73 68 20 2b 20 32 20 6f | nextSla|sh + 2 o|
|00002ae0| 66 20 77 68 61 74 54 65 | 78 74 20 69 73 20 22 20 |f whatTe|xt is " |
|00002af0| 22 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |" then d|elete ch|
|00002b00| 61 72 20 6e 65 78 74 53 | 6c 61 73 68 20 2b 20 32 |ar nextS|lash + 2|
|00002b10| 20 6f 66 20 77 68 61 74 | 54 65 78 74 0d 65 6e 64 | of what|Text.end|
|00002b20| 20 72 65 70 65 61 74 0d | 72 65 70 65 61 74 20 77 | repeat.|repeat w|
|00002b30| 68 69 6c 65 20 6f 66 66 | 73 65 74 28 22 5c 22 2c |hile off|set("\",|
|00002b40| 77 68 61 74 54 65 78 74 | 29 20 3c 3e 20 30 0d 70 |whatText|) <> 0.p|
|00002b50| 75 74 20 6f 66 66 73 65 | 74 28 22 5c 22 2c 77 68 |ut offse|t("\",wh|
|00002b60| 61 74 54 65 78 74 29 20 | 69 6e 74 6f 20 6e 65 78 |atText) |into nex|
|00002b70| 74 49 6e 64 65 6e 74 0d | 70 75 74 20 28 74 61 62 |tIndent.|put (tab|
|00002b80| 20 26 20 74 61 62 20 26 | 20 74 61 62 20 26 20 74 | & tab &| tab & t|
|00002b90| 61 62 20 26 20 74 61 62 | 20 26 20 74 61 62 29 20 |ab & tab| & tab) |
|00002ba0| 69 6e 74 6f 20 63 68 61 | 72 20 6e 65 78 74 49 6e |into cha|r nextIn|
|00002bb0| 64 65 6e 74 20 6f 66 20 | 77 68 61 74 54 65 78 74 |dent of |whatText|
|00002bc0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|00002bd0| 72 6e 20 77 68 61 74 54 | 65 78 74 0d 65 6e 64 20 |rn whatT|ext.end |
|00002be0| 66 6f 72 6d 61 74 54 65 | 78 74 0d 0d 66 75 6e 63 |formatTe|xt..func|
|00002bf0| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 49 6e 20 77 |tion ret|urnsIn w|
|00002c00| 68 61 74 54 65 78 74 2c | 74 68 65 46 6f 6e 74 2c |hatText,|theFont,|
|00002c10| 74 68 65 53 69 7a 65 0d | 70 75 74 20 65 6d 70 74 |theSize.|put empt|
|00002c20| 79 20 69 6e 74 6f 20 6e | 65 77 54 65 78 74 0d 72 |y into n|ewText.r|
|00002c30| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|00002c40| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00002c50| 66 20 6c 69 6e 65 73 20 | 6f 66 20 77 68 61 74 54 |f lines |of whatT|
|00002c60| 65 78 74 0d 70 75 74 20 | 77 6f 72 64 57 72 61 70 |ext.put |wordWrap|
|00002c70| 28 6c 69 6e 65 20 78 20 | 6f 66 20 77 68 61 74 54 |(line x |of whatT|
|00002c80| 65 78 74 2c 28 74 68 65 | 20 77 69 64 74 68 20 6f |ext,(the| width o|
|00002c90| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 2d 20 28 |f fld "B|ody" - (|
|00002ca0| 74 68 65 53 69 7a 65 20 | 2b 20 31 30 29 29 2c 74 |theSize |+ 10)),t|
|00002cb0| 68 65 46 6f 6e 74 2c 74 | 68 65 53 69 7a 65 2c 70 |heFont,t|heSize,p|
|00002cc0| 6c 61 69 6e 29 20 26 20 | 72 65 74 75 72 6e 20 61 |lain) & |return a|
|00002cd0| 66 74 65 72 20 6e 65 77 | 54 65 78 74 0d 65 6e 64 |fter new|Text.end|
|00002ce0| 20 72 65 70 65 61 74 0d | 72 65 74 75 72 6e 20 6e | repeat.|return n|
|00002cf0| 65 77 54 65 78 74 0d 65 | 6e 64 20 72 65 74 75 72 |ewText.e|nd retur|
|00002d00| 6e 73 49 6e 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 6d |nsIn..fu|nction m|
|00002d10| 61 72 6b 52 65 74 75 72 | 6e 73 20 74 68 65 52 65 |arkRetur|ns theRe|
|00002d20| 73 74 4f 66 54 68 69 73 | 42 67 0d 72 65 70 65 61 |stOfThis|Bg.repea|
|00002d30| 74 20 77 68 69 6c 65 20 | 6f 66 66 73 65 74 28 72 |t while |offset(r|
|00002d40| 65 74 75 72 6e 2c 74 68 | 65 52 65 73 74 4f 66 54 |eturn,th|eRestOfT|
|00002d50| 68 69 73 42 67 29 20 3c | 3e 20 30 0d 70 75 74 20 |hisBg) <|> 0.put |
|00002d60| 22 7c 22 20 69 6e 74 6f | 20 63 68 61 72 20 6f 66 |"|" into| char of|
|00002d70| 66 73 65 74 28 72 65 74 | 75 72 6e 2c 74 68 65 52 |fset(ret|urn,theR|
|00002d80| 65 73 74 4f 66 54 68 69 | 73 42 67 29 20 6f 66 20 |estOfThi|sBg) of |
|00002d90| 74 68 65 52 65 73 74 4f | 66 54 68 69 73 42 67 0d |theRestO|fThisBg.|
|00002da0| 65 6e 64 20 72 65 70 65 | 61 74 0d 72 65 74 75 72 |end repe|at.retur|
|00002db0| 6e 20 74 68 65 52 65 73 | 74 4f 66 54 68 69 73 42 |n theRes|tOfThisB|
|00002dc0| 67 0d 65 6e 64 20 6d 61 | 72 6b 52 65 74 75 72 6e |g.end ma|rkReturn|
|00002dd0| 73 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |s..funct|ion retu|
|00002de0| 72 6e 73 4f 75 74 20 74 | 68 65 52 65 73 74 4f 66 |rnsOut t|heRestOf|
|00002df0| 54 68 69 73 42 67 0d 72 | 65 70 65 61 74 20 77 68 |ThisBg.r|epeat wh|
|00002e00| 69 6c 65 20 6f 66 66 73 | 65 74 28 72 65 74 75 72 |ile offs|et(retur|
|00002e10| 6e 2c 74 68 65 52 65 73 | 74 4f 66 54 68 69 73 42 |n,theRes|tOfThisB|
|00002e20| 67 29 20 3c 3e 20 30 0d | 70 75 74 20 22 20 22 20 |g) <> 0.|put " " |
|00002e30| 69 6e 74 6f 20 63 68 61 | 72 20 6f 66 66 73 65 74 |into cha|r offset|
|00002e40| 28 72 65 74 75 72 6e 2c | 74 68 65 52 65 73 74 4f |(return,|theRestO|
|00002e50| 66 54 68 69 73 42 67 29 | 20 6f 66 20 74 68 65 52 |fThisBg)| of theR|
|00002e60| 65 73 74 4f 66 54 68 69 | 73 42 67 0d 65 6e 64 20 |estOfThi|sBg.end |
|00002e70| 72 65 70 65 61 74 0d 72 | 65 74 75 72 6e 20 74 68 |repeat.r|eturn th|
|00002e80| 65 52 65 73 74 4f 66 54 | 68 69 73 42 67 0d 65 6e |eRestOfT|hisBg.en|
|00002e90| 64 20 72 65 74 75 72 6e | 73 4f 75 74 0d 0d 0d 6f |d return|sOut...o|
|00002ea0| 6e 20 63 6f 6d 6d 61 6e | 64 4b 65 79 44 6f 77 6e |n comman|dKeyDown|
|00002eb0| 20 77 68 69 63 68 4b 65 | 79 0d 69 66 20 77 68 69 | whichKe|y.if whi|
|00002ec0| 63 68 4b 65 79 20 69 73 | 20 69 6e 20 22 45 2c 52 |chKey is| in "E,R|
|00002ed0| 2c 4e 2c 49 2c 54 2c 55 | 22 20 74 68 65 6e 0d 69 |,N,I,T,U|" then.i|
|00002ee0| 66 20 77 68 69 63 68 4b | 65 79 20 69 73 20 22 45 |f whichK|ey is "E|
|00002ef0| 22 20 74 68 65 6e 0d 74 | 65 78 74 49 6e 73 65 72 |" then.t|extInser|
|00002f00| 74 0d 65 78 69 74 20 63 | 6f 6d 6d 61 6e 64 4b 65 |t.exit c|ommandKe|
|00002f10| 79 44 6f 77 6e 0d 65 6e | 64 20 69 66 0d 69 66 20 |yDown.en|d if.if |
|00002f20| 77 68 69 63 68 4b 65 79 | 20 69 73 20 22 52 22 20 |whichKey| is "R" |
|00002f30| 74 68 65 6e 0d 72 65 46 | 6c 6f 77 57 69 74 68 53 |then.reF|lowWithS|
|00002f40| 74 79 6c 65 0d 65 78 69 | 74 20 63 6f 6d 6d 61 6e |tyle.exi|t comman|
|00002f50| 64 4b 65 79 44 6f 77 6e | 0d 65 6e 64 20 69 66 0d |dKeyDown|.end if.|
|00002f60| 69 66 20 77 68 69 63 68 | 4b 65 79 20 69 73 20 22 |if which|Key is "|
|00002f70| 4e 22 20 74 68 65 6e 0d | 63 72 65 61 74 65 43 68 |N" then.|createCh|
|00002f80| 61 70 74 65 72 0d 65 78 | 69 74 20 63 6f 6d 6d 61 |apter.ex|it comma|
|00002f90| 6e 64 4b 65 79 44 6f 77 | 6e 0d 65 6e 64 20 69 66 |ndKeyDow|n.end if|
|00002fa0| 0d 69 66 20 77 68 69 63 | 68 4b 65 79 20 69 73 20 |.if whic|hKey is |
|00002fb0| 22 54 22 20 74 68 65 6e | 0d 69 6d 70 6f 72 74 54 |"T" then|.importT|
|00002fc0| 65 78 74 0d 65 78 69 74 | 20 63 6f 6d 6d 61 6e 64 |ext.exit| command|
|00002fd0| 4b 65 79 44 6f 77 6e 0d | 65 6e 64 20 69 66 0d 69 |KeyDown.|end if.i|
|00002fe0| 66 20 77 68 69 63 68 4b | 65 79 20 69 73 20 22 49 |f whichK|ey is "I|
|00002ff0| 22 20 74 68 65 6e 0d 6d | 61 6b 65 49 6e 64 65 6e |" then.m|akeInden|
|00003000| 74 0d 65 78 69 74 20 63 | 6f 6d 6d 61 6e 64 4b 65 |t.exit c|ommandKe|
|00003010| 79 44 6f 77 6e 0d 65 6e | 64 20 69 66 0d 69 66 20 |yDown.en|d if.if |
|00003020| 77 68 69 63 68 4b 65 79 | 20 69 73 20 22 55 22 20 |whichKey| is "U" |
|00003030| 74 68 65 6e 0d 64 65 6c | 65 74 65 49 6e 64 65 6e |then.del|eteInden|
|00003040| 74 0d 65 78 69 74 20 63 | 6f 6d 6d 61 6e 64 4b 65 |t.exit c|ommandKe|
|00003050| 79 44 6f 77 6e 0d 65 6e | 64 20 69 66 0d 65 6e 64 |yDown.en|d if.end|
|00003060| 20 69 66 0d 70 61 73 73 | 20 63 6f 6d 6d 61 6e 64 | if.pass| command|
|00003070| 4b 65 79 44 6f 77 6e 0d | 65 6e 64 20 63 6f 6d 6d |KeyDown.|end comm|
|00003080| 61 6e 64 4b 65 79 44 6f | 77 6e 0d 0d 6f 6e 20 69 |andKeyDo|wn..on i|
|00003090| 6d 70 6f 72 74 54 65 78 | 74 0d 69 66 20 74 6f 6f |mportTex|t.if too|
|000030a0| 6c 73 53 74 61 63 6b 28 | 29 20 74 68 65 6e 20 65 |lsStack(|) then e|
|000030b0| 78 69 74 20 69 6d 70 6f | 72 74 54 65 78 74 0d 70 |xit impo|rtText.p|
|000030c0| 75 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 6f |ut the v|isible o|
|000030d0| 66 20 6d 73 67 20 69 6e | 74 6f 20 6d 56 69 73 0d |f msg in|to mVis.|
|000030e0| 61 6e 73 77 65 72 20 66 | 69 6c 65 20 22 43 68 6f |answer f|ile "Cho|
|000030f0| 6f 73 65 20 61 20 74 65 | 78 74 20 66 69 6c 65 20 |ose a te|xt file |
|00003100| 74 6f 20 69 6d 70 6f 72 | 74 22 20 6f 66 20 74 79 |to impor|t" of ty|
|00003110| 70 65 20 74 65 78 74 0d | 69 66 20 69 74 20 69 73 |pe text.|if it is|
|00003120| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 65 78 69 74 | empty t|hen exit|
|00003130| 20 69 6d 70 6f 72 74 54 | 65 78 74 0d 70 75 74 20 | importT|ext.put |
|00003140| 69 74 20 69 6e 74 6f 20 | 74 68 65 46 69 6c 65 0d |it into |theFile.|
|00003150| 61 6e 73 77 65 72 20 22 | 49 6e 64 65 6e 74 20 70 |answer "|Indent p|
|00003160| 61 72 61 67 72 61 70 68 | 73 3f 22 20 77 69 74 68 |aragraph|s?" with|
|00003170| 20 22 4e 6f 22 20 6f 72 | 20 22 49 6e 64 65 6e 74 | "No" or| "Indent|
|00003180| 22 0d 69 66 20 69 74 20 | 69 73 20 22 49 6e 64 65 |".if it |is "Inde|
|00003190| 6e 74 22 20 74 68 65 6e | 20 70 75 74 20 74 72 75 |nt" then| put tru|
|000031a0| 65 20 69 6e 74 6f 20 6d | 61 6b 65 49 6e 64 65 6e |e into m|akeInden|
|000031b0| 74 73 0d 61 6e 73 77 65 | 72 20 22 53 74 72 69 70 |ts.answe|r "Strip|
|000031c0| 20 72 65 74 75 72 6e 73 | 20 66 72 6f 6d 20 69 6d | returns| from im|
|000031d0| 70 6f 72 74 65 64 20 74 | 65 78 74 3f 22 20 77 69 |ported t|ext?" wi|
|000031e0| 74 68 20 22 4e 6f 22 20 | 6f 72 20 22 59 65 73 22 |th "No" |or "Yes"|
|000031f0| 0d 69 66 20 69 74 20 69 | 73 20 22 59 65 73 22 20 |.if it i|s "Yes" |
|00003200| 74 68 65 6e 20 70 75 74 | 20 74 72 75 65 20 69 6e |then put| true in|
|00003210| 74 6f 20 64 65 52 65 74 | 75 72 6e 0d 70 75 74 20 |to deRet|urn.put |
|00003220| 74 72 75 65 20 69 6e 74 | 6f 20 64 65 44 61 73 68 |true int|o deDash|
|00003230| 0d 6f 70 65 6e 20 66 69 | 6c 65 20 74 68 65 46 69 |.open fi|le theFi|
|00003240| 6c 65 0d 70 75 74 20 22 | 52 65 61 64 69 6e 67 20 |le.put "|Reading |
|00003250| 66 72 6f 6d 20 74 65 78 | 74 20 66 69 6c 65 2e 20 |from tex|t file. |
|00003260| 50 6c 65 61 73 65 20 73 | 74 61 6e 64 20 62 79 2e |Please s|tand by.|
|00003270| 22 0d 72 65 70 65 61 74 | 20 66 6f 72 65 76 65 72 |".repeat| forever|
|00003280| 0d 72 65 61 64 20 66 72 | 6f 6d 20 66 69 6c 65 20 |.read fr|om file |
|00003290| 74 68 65 46 69 6c 65 20 | 66 6f 72 20 31 36 30 30 |theFile |for 1600|
|000032a0| 30 0d 69 66 20 69 74 20 | 69 73 20 65 6d 70 74 79 |0.if it |is empty|
|000032b0| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|000032c0| 74 0d 70 75 74 20 69 74 | 20 61 66 74 65 72 20 74 |t.put it| after t|
|000032d0| 68 65 54 65 78 74 0d 69 | 66 20 74 68 65 20 6e 75 |heText.i|f the nu|
|000032e0| 6d 62 65 72 20 6f 66 20 | 63 68 61 72 73 20 6f 66 |mber of |chars of|
|000032f0| 20 74 68 65 54 65 78 74 | 20 3e 3d 20 33 32 30 30 | theText| >= 3200|
|00003300| 30 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 46 |0 then.a|nswer "F|
|00003310| 69 6c 65 20 69 73 20 74 | 6f 6f 20 6c 6f 6e 67 20 |ile is t|oo long |
|00003320| 66 6f 72 20 74 68 69 73 | 20 76 65 72 73 69 6f 6e |for this| version|
|00003330| 20 6f 66 20 4d 61 67 4d | 61 6b 65 72 20 74 6f 20 | of MagM|aker to |
|00003340| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 69 6d 70 6f 72 |complete|ly impor|
|00003350| 74 2e 20 50 6c 65 61 73 | 65 20 22 20 26 20 c2 0d |t. Pleas|e " & ..|
|00003360| 22 73 70 6c 69 74 20 74 | 65 78 74 20 66 69 6c 65 |"split t|ext file|
|00003370| 20 69 6e 74 6f 20 73 6d | 61 6c 6c 65 72 20 63 68 | into sm|aller ch|
|00003380| 61 70 74 65 72 73 20 62 | 65 66 6f 72 65 20 69 6d |apters b|efore im|
|00003390| 70 6f 72 74 69 6e 67 2e | 22 0d 63 6c 6f 73 65 20 |porting.|".close |
|000033a0| 66 69 6c 65 20 74 68 65 | 46 69 6c 65 0d 65 78 69 |file the|File.exi|
|000033b0| 74 20 69 6d 70 6f 72 74 | 54 65 78 74 0d 65 6e 64 |t import|Text.end|
|000033c0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 | if.end |repeat.p|
|000033d0| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|000033e0| 20 63 68 61 72 73 20 6f | 66 20 74 68 65 54 65 78 | chars o|f theTex|
|000033f0| 74 20 26 20 22 20 63 68 | 61 72 61 63 74 65 72 73 |t & " ch|aracters|
|00003400| 20 6f 66 20 61 20 6d 61 | 78 69 6d 75 6d 20 6f 66 | of a ma|ximum of|
|00003410| 20 33 32 30 30 30 20 69 | 6d 70 6f 72 74 65 64 2e | 32000 i|mported.|
|00003420| 22 0d 77 61 69 74 20 32 | 20 73 65 63 73 0d 63 6c |".wait 2| secs.cl|
|00003430| 6f 73 65 20 66 69 6c 65 | 20 74 68 65 46 69 6c 65 |ose file| theFile|
|00003440| 0d 69 66 20 6d 61 6b 65 | 49 6e 64 65 6e 74 73 20 |.if make|Indents |
|00003450| 69 73 20 74 72 75 65 20 | 74 68 65 6e 20 70 75 74 |is true |then put|
|00003460| 20 6d 61 72 6b 49 6e 64 | 65 6e 74 73 28 74 68 65 | markInd|ents(the|
|00003470| 54 65 78 74 29 20 69 6e | 74 6f 20 74 68 65 54 65 |Text) in|to theTe|
|00003480| 78 74 0d 72 65 70 65 61 | 74 20 77 68 69 6c 65 20 |xt.repea|t while |
|00003490| 6f 66 66 73 65 74 28 74 | 61 62 2c 74 68 65 54 65 |offset(t|ab,theTe|
|000034a0| 78 74 29 20 3c 3e 20 30 | 0d 70 75 74 20 22 20 22 |xt) <> 0|.put " "|
|000034b0| 20 69 6e 74 6f 20 63 68 | 61 72 20 6f 66 66 73 65 | into ch|ar offse|
|000034c0| 74 28 74 61 62 2c 74 68 | 65 54 65 78 74 29 20 6f |t(tab,th|eText) o|
|000034d0| 66 20 74 68 65 54 65 78 | 74 0d 65 6e 64 20 72 65 |f theTex|t.end re|
|000034e0| 70 65 61 74 0d 6c 6f 63 | 6b 20 73 63 72 65 65 6e |peat.loc|k screen|
|000034f0| 0d 70 75 74 20 22 43 6c | 65 61 6e 69 6e 67 20 75 |.put "Cl|eaning u|
|00003500| 70 20 69 6d 70 6f 72 74 | 65 64 20 74 65 78 74 2e |p import|ed text.|
|00003510| 20 30 25 20 63 6f 6d 70 | 6c 65 74 65 2e 22 0d 73 | 0% comp|lete.".s|
|00003520| 65 74 20 6e 75 6d 62 65 | 72 46 6f 72 6d 61 74 20 |et numbe|rFormat |
|00003530| 74 6f 20 22 30 30 22 0d | 70 75 74 20 74 68 65 20 |to "00".|put the |
|00003540| 6e 75 6d 62 65 72 20 6f | 66 20 63 68 61 72 73 20 |number o|f chars |
|00003550| 6f 66 20 74 68 65 54 65 | 78 74 20 69 6e 74 6f 20 |of theTe|xt into |
|00003560| 64 69 76 54 6f 70 0d 72 | 65 70 65 61 74 0d 70 75 |divTop.r|epeat.pu|
|00003570| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t the nu|mber of |
|00003580| 63 68 61 72 73 20 6f 66 | 20 74 68 65 54 65 78 74 |chars of| theText|
|00003590| 20 69 6e 74 6f 20 74 6f | 74 43 68 61 72 73 0d 69 | into to|tChars.i|
|000035a0| 66 20 74 6f 74 43 68 61 | 72 73 20 3e 20 31 30 30 |f totCha|rs > 100|
|000035b0| 30 20 74 68 65 6e 0d 70 | 75 74 20 28 31 20 2d 20 |0 then.p|ut (1 - |
|000035c0| 28 28 74 6f 74 43 68 61 | 72 73 20 2d 20 31 30 30 |((totCha|rs - 100|
|000035d0| 30 29 2f 64 69 76 54 6f | 70 29 29 20 2a 20 31 30 |0)/divTo|p)) * 10|
|000035e0| 30 20 69 6e 74 6f 20 74 | 68 65 50 65 72 63 65 6e |0 into t|hePercen|
|000035f0| 74 0d 70 75 74 20 22 43 | 6c 65 61 6e 69 6e 67 20 |t.put "C|leaning |
|00003600| 75 70 20 69 6d 70 6f 72 | 74 65 64 20 74 65 78 74 |up impor|ted text|
|00003610| 2e 20 22 20 26 20 74 68 | 65 50 65 72 63 65 6e 74 |. " & th|ePercent|
|00003620| 20 26 20 22 25 20 63 6f | 6d 70 6c 65 74 65 2e 22 | & "% co|mplete."|
|00003630| 0d 70 75 74 20 63 68 61 | 72 20 31 20 74 6f 20 31 |.put cha|r 1 to 1|
|00003640| 30 30 30 20 6f 66 20 74 | 68 65 54 65 78 74 20 69 |000 of t|heText i|
|00003650| 6e 74 6f 20 73 74 72 69 | 70 54 65 78 74 0d 69 66 |nto stri|pText.if|
|00003660| 20 64 65 52 65 74 75 72 | 6e 20 69 73 20 6e 6f 74 | deRetur|n is not|
|00003670| 20 74 72 75 65 20 74 68 | 65 6e 0d 69 66 20 64 65 | true th|en.if de|
|00003680| 44 61 73 68 20 69 73 20 | 74 72 75 65 20 74 68 65 |Dash is |true the|
|00003690| 6e 0d 70 75 74 20 63 6c | 65 61 6e 44 61 73 68 65 |n.put cl|eanDashe|
|000036a0| 73 28 73 74 72 69 70 54 | 65 78 74 29 20 69 6e 74 |s(stripT|ext) int|
|000036b0| 6f 20 73 74 72 69 70 54 | 65 78 74 0d 65 6e 64 20 |o stripT|ext.end |
|000036c0| 69 66 0d 70 75 74 20 6d | 61 72 6b 52 65 74 75 72 |if.put m|arkRetur|
|000036d0| 6e 73 28 73 74 72 69 70 | 54 65 78 74 29 20 69 6e |ns(strip|Text) in|
|000036e0| 74 6f 20 73 74 72 69 70 | 54 65 78 74 0d 70 75 74 |to strip|Text.put|
|000036f0| 20 66 61 73 74 53 74 72 | 69 70 53 70 61 63 65 73 | fastStr|ipSpaces|
|00003700| 28 73 74 72 69 70 54 65 | 78 74 29 20 61 66 74 65 |(stripTe|xt) afte|
|00003710| 72 20 63 6c 65 61 6e 54 | 65 78 74 0d 65 6c 73 65 |r cleanT|ext.else|
|00003720| 0d 70 75 74 20 72 65 74 | 75 72 6e 73 4f 75 74 28 |.put ret|urnsOut(|
|00003730| 73 74 72 69 70 54 65 78 | 74 29 20 69 6e 74 6f 20 |stripTex|t) into |
|00003740| 73 74 72 69 70 54 65 78 | 74 0d 69 66 20 64 65 44 |stripTex|t.if deD|
|00003750| 61 73 68 20 69 73 20 74 | 72 75 65 20 74 68 65 6e |ash is t|rue then|
|00003760| 0d 70 75 74 20 63 6c 65 | 61 6e 44 61 73 68 65 73 |.put cle|anDashes|
|00003770| 28 73 74 72 69 70 54 65 | 78 74 29 20 69 6e 74 6f |(stripTe|xt) into|
|00003780| 20 73 74 72 69 70 54 65 | 78 74 0d 65 6e 64 20 69 | stripTe|xt.end i|
|00003790| 66 0d 70 75 74 20 66 61 | 73 74 53 74 72 69 70 53 |f.put fa|stStripS|
|000037a0| 70 61 63 65 73 28 73 74 | 72 69 70 54 65 78 74 29 |paces(st|ripText)|
|000037b0| 20 61 66 74 65 72 20 63 | 6c 65 61 6e 54 65 78 74 | after c|leanText|
|000037c0| 0d 65 6e 64 20 69 66 0d | 64 65 6c 65 74 65 20 63 |.end if.|delete c|
|000037d0| 68 61 72 20 31 20 74 6f | 20 31 30 30 30 20 6f 66 |har 1 to| 1000 of|
|000037e0| 20 74 68 65 54 65 78 74 | 0d 65 6c 73 65 0d 70 75 | theText|.else.pu|
|000037f0| 74 20 63 68 61 72 20 31 | 20 74 6f 20 28 74 68 65 |t char 1| to (the|
|00003800| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 73 | number |of chars|
|00003810| 20 6f 66 20 74 68 65 54 | 65 78 74 29 20 6f 66 20 | of theT|ext) of |
|00003820| 74 68 65 54 65 78 74 20 | 69 6e 74 6f 20 73 74 72 |theText |into str|
|00003830| 69 70 54 65 78 74 0d 69 | 66 20 64 65 52 65 74 75 |ipText.i|f deRetu|
|00003840| 72 6e 20 69 73 20 6e 6f | 74 20 74 72 75 65 20 74 |rn is no|t true t|
|00003850| 68 65 6e 0d 69 66 20 64 | 65 44 61 73 68 20 69 73 |hen.if d|eDash is|
|00003860| 20 74 72 75 65 20 74 68 | 65 6e 0d 70 75 74 20 63 | true th|en.put c|
|00003870| 6c 65 61 6e 44 61 73 68 | 65 73 28 73 74 72 69 70 |leanDash|es(strip|
|00003880| 54 65 78 74 29 20 69 6e | 74 6f 20 73 74 72 69 70 |Text) in|to strip|
|00003890| 54 65 78 74 0d 65 6e 64 | 20 69 66 0d 70 75 74 20 |Text.end| if.put |
|000038a0| 6d 61 72 6b 52 65 74 75 | 72 6e 73 28 73 74 72 69 |markRetu|rns(stri|
|000038b0| 70 54 65 78 74 29 20 69 | 6e 74 6f 20 73 74 72 69 |pText) i|nto stri|
|000038c0| 70 54 65 78 74 0d 70 75 | 74 20 66 61 73 74 53 74 |pText.pu|t fastSt|
|000038d0| 72 69 70 53 70 61 63 65 | 73 28 73 74 72 69 70 54 |ripSpace|s(stripT|
|000038e0| 65 78 74 29 20 61 66 74 | 65 72 20 63 6c 65 61 6e |ext) aft|er clean|
|000038f0| 54 65 78 74 0d 65 6c 73 | 65 0d 70 75 74 20 72 65 |Text.els|e.put re|
|00003900| 74 75 72 6e 73 4f 75 74 | 28 73 74 72 69 70 54 65 |turnsOut|(stripTe|
|00003910| 78 74 29 20 69 6e 74 6f | 20 73 74 72 69 70 54 65 |xt) into| stripTe|
|00003920| 78 74 0d 69 66 20 64 65 | 44 61 73 68 20 69 73 20 |xt.if de|Dash is |
|00003930| 74 72 75 65 20 74 68 65 | 6e 0d 70 75 74 20 63 6c |true the|n.put cl|
|00003940| 65 61 6e 44 61 73 68 65 | 73 28 73 74 72 69 70 54 |eanDashe|s(stripT|
|00003950| 65 78 74 29 20 69 6e 74 | 6f 20 73 74 72 69 70 54 |ext) int|o stripT|
|00003960| 65 78 74 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 66 |ext.end |if.put f|
|00003970| 61 73 74 53 74 72 69 70 | 53 70 61 63 65 73 28 73 |astStrip|Spaces(s|
|00003980| 74 72 69 70 54 65 78 74 | 29 20 61 66 74 65 72 20 |tripText|) after |
|00003990| 63 6c 65 61 6e 54 65 78 | 74 0d 65 6e 64 20 69 66 |cleanTex|t.end if|
|000039a0| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|000039b0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 73 | if.end |repeat.s|
|000039c0| 65 74 20 6e 75 6d 62 65 | 72 46 6f 72 6d 61 74 20 |et numbe|rFormat |
|000039d0| 74 6f 20 22 30 22 0d 70 | 75 74 20 65 6d 70 74 79 |to "0".p|ut empty|
|000039e0| 20 69 6e 74 6f 20 6d 73 | 67 0d 73 65 74 20 74 68 | into ms|g.set th|
|000039f0| 65 20 76 69 73 69 62 6c | 65 20 6f 66 20 6d 73 67 |e visibl|e of msg|
|00003a00| 20 74 6f 20 6d 56 69 73 | 0d 64 6f 55 70 64 61 74 | to mVis|.doUpdat|
|00003a10| 65 20 63 6c 65 61 6e 54 | 65 78 74 0d 75 6e 6c 6f |e cleanT|ext.unlo|
|00003a20| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 69 6d |ck scree|n.end im|
|00003a30| 70 6f 72 74 54 65 78 74 | 0d 0d 0d 6f 6e 20 65 78 |portText|...on ex|
|00003a40| 70 6f 72 74 54 65 78 74 | 0d 69 66 20 74 6f 6f 6c |portText|.if tool|
|00003a50| 73 53 74 61 63 6b 28 29 | 20 74 68 65 6e 20 65 78 |sStack()| then ex|
|00003a60| 69 74 20 65 78 70 6f 72 | 74 54 65 78 74 0d 70 75 |it expor|tText.pu|
|00003a70| 74 20 74 68 65 20 76 69 | 73 69 62 6c 65 20 6f 66 |t the vi|sible of|
|00003a80| 20 6d 73 67 20 69 6e 74 | 6f 20 6d 56 69 73 0d 61 | msg int|o mVis.a|
|00003a90| 6e 73 77 65 72 20 22 45 | 78 70 6f 72 74 20 61 6c |nswer "E|xport al|
|00003aa0| 6c 20 63 6f 70 79 20 6f | 72 20 6a 75 73 74 20 74 |l copy o|r just t|
|00003ab0| 68 69 73 20 63 68 61 70 | 74 65 72 3f 22 20 77 69 |his chap|ter?" wi|
|00003ac0| 74 68 20 22 43 61 6e 63 | 65 6c 22 20 6f 72 20 22 |th "Canc|el" or "|
|00003ad0| 41 6c 6c 22 20 6f 72 20 | 22 43 68 61 70 74 65 72 |All" or |"Chapter|
|00003ae0| 22 0d 69 66 20 69 74 20 | 69 73 20 22 43 61 6e 63 |".if it |is "Canc|
|00003af0| 65 6c 22 20 6f 72 20 74 | 68 65 20 72 65 73 75 6c |el" or t|he resul|
|00003b00| 74 20 69 73 20 22 43 61 | 6e 63 65 6c 22 20 74 68 |t is "Ca|ncel" th|
|00003b10| 65 6e 20 65 78 69 74 20 | 65 78 70 6f 72 74 54 65 |en exit |exportTe|
|00003b20| 78 74 0d 70 75 74 20 69 | 74 20 69 6e 74 6f 20 74 |xt.put i|t into t|
|00003b30| 68 65 41 6e 73 77 65 72 | 0d 61 6e 73 77 65 72 20 |heAnswer|.answer |
|00003b40| 66 69 6c 65 20 22 43 68 | 6f 6f 73 65 20 61 20 74 |file "Ch|oose a t|
|00003b50| 65 78 74 20 66 69 6c 65 | 20 69 6e 74 6f 20 77 68 |ext file| into wh|
|00003b60| 69 63 68 20 79 6f 75 20 | 77 69 73 68 20 74 6f 20 |ich you |wish to |
|00003b70| 65 78 70 6f 72 74 22 20 | 6f 66 20 74 79 70 65 20 |export" |of type |
|00003b80| 74 65 78 74 20 6f 72 20 | 22 58 44 4f 43 22 0d 69 |text or |"XDOC".i|
|00003b90| 66 20 69 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |f it is |empty th|
|00003ba0| 65 6e 20 65 78 69 74 20 | 65 78 70 6f 72 74 54 65 |en exit |exportTe|
|00003bb0| 78 74 0d 70 75 74 20 69 | 74 20 69 6e 74 6f 20 74 |xt.put i|t into t|
|00003bc0| 68 65 46 69 6c 65 0d 70 | 75 74 20 66 6c 64 20 22 |heFile.p|ut fld "|
|00003bd0| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 6e 74 |ArticleN|ame" int|
|00003be0| 6f 20 74 68 69 73 43 68 | 61 70 74 0d 6f 70 65 6e |o thisCh|apt.open|
|00003bf0| 20 66 69 6c 65 20 74 68 | 65 46 69 6c 65 0d 6c 6f | file th|eFile.lo|
|00003c00| 63 6b 20 6d 65 73 73 61 | 67 65 73 0d 69 66 20 74 |ck messa|ges.if t|
|00003c10| 68 65 41 6e 73 77 65 72 | 20 69 73 20 22 43 68 61 |heAnswer| is "Cha|
|00003c20| 70 74 65 72 22 20 74 68 | 65 6e 0d 75 6e 6d 61 72 |pter" th|en.unmar|
|00003c30| 6b 20 61 6c 6c 20 63 64 | 73 0d 6d 61 72 6b 20 63 |k all cd|s.mark c|
|00003c40| 64 73 20 77 68 65 72 65 | 20 66 6c 64 20 22 41 72 |ds where| fld "Ar|
|00003c50| 74 69 63 6c 65 4e 61 6d | 65 22 20 69 73 20 74 68 |ticleNam|e" is th|
|00003c60| 69 73 43 68 61 70 74 0d | 67 6f 20 66 69 72 73 74 |isChapt.|go first|
|00003c70| 20 6d 61 72 6b 65 64 20 | 63 64 0d 65 6c 73 65 0d | marked |cd.else.|
|00003c80| 6d 61 72 6b 20 61 6c 6c | 20 63 64 73 0d 67 6f 20 |mark all| cds.go |
|00003c90| 63 64 20 22 48 65 6c 70 | 22 0d 70 75 74 20 22 45 |cd "Help|".put "E|
|00003ca0| 78 70 6f 72 74 69 6e 67 | 20 63 6f 70 79 72 69 67 |xporting| copyrig|
|00003cb0| 68 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 22 |ht infor|mation."|
|00003cc0| 0d 70 75 74 20 63 64 20 | 66 6c 64 20 22 41 62 6f |.put cd |fld "Abo|
|00003cd0| 75 74 42 6f 6f 6b 4d 61 | 6b 65 72 22 20 26 20 72 |utBookMa|ker" & r|
|00003ce0| 65 74 75 72 6e 20 26 20 | 72 65 74 75 72 6e 20 69 |eturn & |return i|
|00003cf0| 6e 74 6f 20 63 72 65 64 | 69 74 54 65 78 74 0d 77 |nto cred|itText.w|
|00003d00| 72 69 74 65 20 63 72 65 | 64 69 74 54 65 78 74 20 |rite cre|ditText |
|00003d10| 26 20 72 65 74 75 72 6e | 20 74 6f 20 66 69 6c 65 |& return| to file|
|00003d20| 20 74 68 65 46 69 6c 65 | 0d 67 6f 20 63 64 20 22 | theFile|.go cd "|
|00003d30| 54 61 62 6c 65 20 6f 66 | 20 43 6f 6e 74 65 6e 74 |Table of| Content|
|00003d40| 73 22 0d 67 6f 20 6e 65 | 78 74 0d 70 75 74 20 66 |s".go ne|xt.put f|
|00003d50| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|00003d60| 20 69 6e 74 6f 20 74 68 | 69 73 43 68 61 70 74 0d | into th|isChapt.|
|00003d70| 65 6e 64 20 69 66 0d 6c | 6f 63 6b 20 73 63 72 65 |end if.l|ock scre|
|00003d80| 65 6e 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 78 |en.repea|t with x|
|00003d90| 20 3d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | = 1 to |the numb|
|00003da0| 65 72 20 6f 66 20 6d 61 | 72 6b 65 64 20 63 64 73 |er of ma|rked cds|
|00003db0| 0d 70 75 74 20 22 45 78 | 70 6f 72 74 69 6e 67 20 |.put "Ex|porting |
|00003dc0| 22 20 26 20 74 68 69 73 | 43 68 61 70 74 20 26 20 |" & this|Chapt & |
|00003dd0| 22 20 d0 20 50 61 67 65 | 20 22 20 26 20 66 6c 64 |" . Page| " & fld|
|00003de0| 20 22 50 61 67 65 20 4e | 75 6d 22 0d 70 75 74 20 | "Page N|um".put |
|00003df0| 66 6c 64 20 22 42 6f 64 | 79 22 20 69 6e 74 6f 20 |fld "Bod|y" into |
|00003e00| 6f 6c 64 54 65 78 74 0d | 70 75 74 20 72 65 74 75 |oldText.|put retu|
|00003e10| 72 6e 73 4f 75 74 28 6f | 6c 64 54 65 78 74 29 20 |rnsOut(o|ldText) |
|00003e20| 69 6e 74 6f 20 6e 65 77 | 54 65 78 74 0d 70 75 74 |into new|Text.put|
|00003e30| 20 66 61 73 74 53 74 72 | 69 70 53 70 61 63 65 73 | fastStr|ipSpaces|
|00003e40| 28 6e 65 77 54 65 78 74 | 29 20 69 6e 74 6f 20 6e |(newText|) into n|
|00003e50| 65 77 54 65 78 74 0d 70 | 75 74 20 66 6f 72 6d 61 |ewText.p|ut forma|
|00003e60| 74 54 65 78 74 28 6e 65 | 77 54 65 78 74 29 20 69 |tText(ne|wText) i|
|00003e70| 6e 74 6f 20 72 65 46 6c | 6f 77 4f 75 74 0d 70 75 |nto reFl|owOut.pu|
|00003e80| 74 20 72 65 46 6c 6f 77 | 4f 75 74 20 61 66 74 65 |t reFlow|Out afte|
|00003e90| 72 20 74 68 65 54 65 78 | 74 0d 67 6f 20 6e 65 78 |r theTex|t.go nex|
|00003ea0| 74 20 6d 61 72 6b 65 64 | 20 63 64 0d 77 72 69 74 |t marked| cd.writ|
|00003eb0| 65 20 74 68 65 54 65 78 | 74 20 74 6f 20 66 69 6c |e theTex|t to fil|
|00003ec0| 65 20 74 68 65 46 69 6c | 65 0d 69 66 20 66 6c 64 |e theFil|e.if fld|
|00003ed0| 20 22 41 72 74 69 63 6c | 65 4e 61 6d 65 22 20 ad | "Articl|eName" .|
|00003ee0| 20 74 68 69 73 43 68 61 | 70 74 20 74 68 65 6e 0d | thisCha|pt then.|
|00003ef0| 77 72 69 74 65 20 72 65 | 74 75 72 6e 20 26 20 72 |write re|turn & r|
|00003f00| 65 74 75 72 6e 20 74 6f | 20 66 69 6c 65 20 74 68 |eturn to| file th|
|00003f10| 65 46 69 6c 65 0d 70 75 | 74 20 66 6c 64 20 22 41 |eFile.pu|t fld "A|
|00003f20| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 69 6e 74 6f |rticleNa|me" into|
|00003f30| 20 74 68 69 73 43 68 61 | 70 74 0d 65 6e 64 20 69 | thisCha|pt.end i|
|00003f40| 66 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |f.put em|pty into|
|00003f50| 20 74 68 65 54 65 78 74 | 0d 69 66 20 74 68 65 20 | theText|.if the |
|00003f60| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 69 73 20 63 |number o|f this c|
|00003f70| 64 20 69 73 20 31 20 74 | 68 65 6e 20 65 78 69 74 |d is 1 t|hen exit|
|00003f80| 20 72 65 70 65 61 74 0d | 65 6e 64 20 72 65 70 65 | repeat.|end repe|
|00003f90| 61 74 0d 63 6c 6f 73 65 | 20 66 69 6c 65 20 74 68 |at.close| file th|
|00003fa0| 65 46 69 6c 65 0d 70 75 | 74 20 22 45 78 70 6f 72 |eFile.pu|t "Expor|
|00003fb0| 74 20 63 6f 6d 70 6c 65 | 74 65 2e 22 0d 77 61 69 |t comple|te.".wai|
|00003fc0| 74 20 31 20 73 65 63 0d | 73 65 74 20 74 68 65 20 |t 1 sec.|set the |
|00003fd0| 76 69 73 69 62 6c 65 20 | 6f 66 20 6d 73 67 20 74 |visible |of msg t|
|00003fe0| 6f 20 6d 56 69 73 0d 65 | 6e 64 20 65 78 70 6f 72 |o mVis.e|nd expor|
|00003ff0| 74 54 65 78 74 0d 0d 6f | 6e 20 6f 70 65 6e 4d 61 |tText..o|n openMa|
|00004000| 67 4d 61 6b 65 72 0d 69 | 66 20 74 6f 6f 6c 73 53 |gMaker.i|f toolsS|
|00004010| 74 61 63 6b 28 29 20 74 | 68 65 6e 20 65 78 69 74 |tack() t|hen exit|
|00004020| 20 6f 70 65 6e 4d 61 67 | 4d 61 6b 65 72 0d 69 66 | openMag|Maker.if|
|00004030| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00004040| 20 22 4d 61 67 4d 61 6b | 65 72 22 20 74 68 65 6e | "MagMak|er" then|
|00004050| 0d 73 65 74 20 74 68 65 | 20 63 68 65 63 6b 4d 61 |.set the| checkMa|
|00004060| 72 6b 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 20 31 |rk of me|nuItem 1|
|00004070| 20 6f 66 20 6d 65 6e 75 | 20 22 4c 61 79 6f 75 74 | of menu| "Layout|
|00004080| 22 20 74 6f 20 66 61 6c | 73 65 0d 73 65 74 20 74 |" to fal|se.set t|
|00004090| 68 65 20 6c 6f 63 6b 54 | 65 78 74 20 6f 66 20 66 |he lockT|ext of f|
|000040a0| 6c 64 20 22 42 6f 64 79 | 22 20 74 6f 20 74 72 75 |ld "Body|" to tru|
|000040b0| 65 0d 73 65 74 20 74 68 | 65 20 6c 6f 63 6b 54 65 |e.set th|e lockTe|
|000040c0| 78 74 20 6f 66 20 66 6c | 64 20 22 41 72 74 69 63 |xt of fl|d "Artic|
|000040d0| 6c 65 4e 61 6d 65 22 20 | 74 6f 20 74 72 75 65 0d |leName" |to true.|
|000040e0| 6f 70 65 6e 73 74 61 63 | 6b 20 66 61 6c 73 65 0d |openstac|k false.|
|000040f0| 65 6c 73 65 0d 6f 70 65 | 6e 73 74 61 63 6b 20 74 |else.ope|nstack t|
|00004100| 72 75 65 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 6f |rue.end |if.end o|
|00004110| 70 65 6e 4d 61 67 4d 61 | 6b 65 72 0d 0d 0d 6f 6e |penMagMa|ker...on|
|00004120| 20 6d 61 67 4d 61 6b 65 | 72 4d 65 6e 75 73 0d 69 | magMake|rMenus.i|
|00004130| 66 20 74 6f 6f 6c 73 53 | 74 61 63 6b 28 29 20 74 |f toolsS|tack() t|
|00004140| 68 65 6e 20 65 78 69 74 | 20 6d 61 67 4d 61 6b 65 |hen exit| magMake|
|00004150| 72 4d 65 6e 75 73 0d 6c | 6f 63 6b 20 73 63 72 65 |rMenus.l|ock scre|
|00004160| 65 6e 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |en.if th|ere is a|
|00004170| 20 6d 65 6e 75 20 22 4d | 61 67 4d 61 6b 65 72 22 | menu "M|agMaker"|
|00004180| 20 74 68 65 6e 20 65 78 | 69 74 20 6d 61 67 4d 61 | then ex|it magMa|
|00004190| 6b 65 72 4d 65 6e 75 73 | 0d 63 72 65 61 74 65 20 |kerMenus|.create |
|000041a0| 6d 65 6e 75 20 22 4c 61 | 79 6f 75 74 22 0d 70 75 |menu "La|yout".pu|
|000041b0| 74 20 6d 61 67 54 65 78 | 74 49 74 65 6d 73 28 29 |t magTex|tItems()|
|000041c0| 20 69 6e 74 6f 20 6d 65 | 6e 75 20 22 4c 61 79 6f | into me|nu "Layo|
|000041d0| 75 74 22 20 77 69 74 68 | 20 6d 65 6e 75 4d 73 67 |ut" with| menuMsg|
|000041e0| 20 6d 61 67 54 65 78 74 | 4d 73 67 73 28 29 0d 73 | magText|Msgs().s|
|000041f0| 65 74 20 63 6f 6d 6d 61 | 6e 64 43 68 61 72 20 6f |et comma|ndChar o|
|00004200| 66 20 6d 65 6e 75 49 74 | 65 6d 20 31 20 6f 66 20 |f menuIt|em 1 of |
|00004210| 6d 65 6e 75 20 22 4c 61 | 79 6f 75 74 22 20 74 6f |menu "La|yout" to|
|00004220| 20 22 45 22 0d 73 65 74 | 20 63 6f 6d 6d 61 6e 64 | "E".set| command|
|00004230| 43 68 61 72 20 6f 66 20 | 6d 65 6e 75 49 74 65 6d |Char of |menuItem|
|00004240| 20 32 20 6f 66 20 6d 65 | 6e 75 20 22 4c 61 79 6f | 2 of me|nu "Layo|
|00004250| 75 74 22 20 74 6f 20 22 | 52 22 0d 73 65 74 20 63 |ut" to "|R".set c|
|00004260| 6f 6d 6d 61 6e 64 43 68 | 61 72 20 6f 66 20 6d 65 |ommandCh|ar of me|
|00004270| 6e 75 49 74 65 6d 20 22 | 4d 61 6b 65 20 49 6e 64 |nuItem "|Make Ind|
|00004280| 65 6e 74 22 20 6f 66 20 | 6d 65 6e 75 20 22 4c 61 |ent" of |menu "La|
|00004290| 79 6f 75 74 22 20 74 6f | 20 22 49 22 0d 73 65 74 |yout" to| "I".set|
|000042a0| 20 63 6f 6d 6d 61 6e 64 | 43 68 61 72 20 6f 66 20 | command|Char of |
|000042b0| 6d 65 6e 75 49 74 65 6d | 20 22 44 65 6c 65 74 65 |menuItem| "Delete|
|000042c0| 20 49 6e 64 65 6e 74 22 | 20 6f 66 20 6d 65 6e 75 | Indent"| of menu|
|000042d0| 20 22 4c 61 79 6f 75 74 | 22 20 74 6f 20 22 55 22 | "Layout|" to "U"|
|000042e0| 0d 73 65 74 20 63 6f 6d | 6d 61 6e 64 43 68 61 72 |.set com|mandChar|
|000042f0| 20 6f 66 20 6d 65 6e 75 | 49 74 65 6d 20 22 49 6d | of menu|Item "Im|
|00004300| 70 6f 72 74 20 54 65 78 | 74 22 20 6f 66 20 6d 65 |port Tex|t" of me|
|00004310| 6e 75 20 22 4c 61 79 6f | 75 74 22 20 74 6f 20 22 |nu "Layo|ut" to "|
|00004320| 54 22 0d 70 75 74 20 6d | 61 67 50 69 63 74 75 72 |T".put m|agPictur|
|00004330| 65 49 74 65 6d 73 28 29 | 20 61 66 74 65 72 20 6d |eItems()| after m|
|00004340| 65 6e 75 20 22 4c 61 79 | 6f 75 74 22 20 77 69 74 |enu "Lay|out" wit|
|00004350| 68 20 6d 65 6e 75 4d 73 | 67 20 6d 61 67 50 69 63 |h menuMs|g magPic|
|00004360| 74 75 72 65 4d 73 67 73 | 28 29 0d 63 72 65 61 74 |tureMsgs|().creat|
|00004370| 65 20 6d 65 6e 75 20 22 | 4d 61 67 4d 61 6b 65 72 |e menu "|MagMaker|
|00004380| 22 0d 70 75 74 20 6d 61 | 67 4d 65 6e 75 73 49 74 |".put ma|gMenusIt|
|00004390| 65 6d 73 28 29 20 69 6e | 74 6f 20 6d 65 6e 75 20 |ems() in|to menu |
|000043a0| 22 4d 61 67 4d 61 6b 65 | 72 22 20 77 69 74 68 20 |"MagMake|r" with |
|000043b0| 6d 65 6e 75 4d 73 67 20 | 6d 61 67 4d 65 6e 75 73 |menuMsg |magMenus|
|000043c0| 4d 73 67 73 28 29 0d 73 | 65 74 20 63 6f 6d 6d 61 |Msgs().s|et comma|
|000043d0| 6e 64 43 68 61 72 20 6f | 66 20 6d 65 6e 75 49 74 |ndChar o|f menuIt|
|000043e0| 65 6d 20 22 4e 65 77 20 | 41 72 74 69 63 6c 65 22 |em "New |Article"|
|000043f0| 20 6f 66 20 6d 65 6e 75 | 20 22 4d 61 67 4d 61 6b | of menu| "MagMak|
|00004400| 65 72 22 20 74 6f 20 22 | 4e 22 0d 73 65 74 20 74 |er" to "|N".set t|
|00004410| 68 65 20 63 6f 6d 6d 61 | 6e 64 43 68 61 72 20 6f |he comma|ndChar o|
|00004420| 66 20 6d 65 6e 75 49 74 | 65 6d 20 22 4e 65 77 20 |f menuIt|em "New |
|00004430| 43 61 72 64 22 20 6f 66 | 20 6d 65 6e 75 20 22 45 |Card" of| menu "E|
|00004440| 64 69 74 22 20 74 6f 20 | 22 22 0d 70 75 74 20 22 |dit" to |"".put "|
|00004450| 43 6c 6f 73 65 20 4d 61 | 67 4d 61 6b 65 72 22 20 |Close Ma|gMaker" |
|00004460| 61 66 74 65 72 20 6d 65 | 6e 75 20 22 4d 61 67 4d |after me|nu "MagM|
|00004470| 61 6b 65 72 22 20 77 69 | 74 68 20 6d 65 6e 75 4d |aker" wi|th menuM|
|00004480| 73 67 20 22 63 6c 6f 73 | 65 4d 61 67 4d 61 6b 65 |sg "clos|eMagMake|
|00004490| 72 22 0d 70 75 74 20 22 | 43 6f 70 79 20 41 72 74 |r".put "|Copy Art|
|000044a0| 69 63 6c 65 22 20 26 20 | 72 65 74 75 72 6e 20 26 |icle" & |return &|
|000044b0| 20 22 50 61 73 74 65 20 | 41 72 74 69 63 6c 65 22 | "Paste |Article"|
|000044c0| 20 26 20 72 65 74 75 72 | 6e 20 26 20 22 2d 22 20 | & retur|n & "-" |
|000044d0| 61 66 74 65 72 20 6d 65 | 6e 75 49 74 65 6d 20 37 |after me|nuItem 7|
|000044e0| 20 6f 66 20 6d 65 6e 75 | 20 22 45 64 69 74 22 0d | of menu| "Edit".|
|000044f0| 73 65 74 20 6d 65 6e 75 | 4d 73 67 20 6f 66 20 6d |set menu|Msg of m|
|00004500| 65 6e 75 49 74 65 6d 20 | 22 43 6f 70 79 20 41 72 |enuItem |"Copy Ar|
|00004510| 74 69 63 6c 65 22 20 6f | 66 20 6d 65 6e 75 20 22 |ticle" o|f menu "|
|00004520| 45 64 69 74 22 20 74 6f | 20 22 63 6f 70 79 41 72 |Edit" to| "copyAr|
|00004530| 74 69 63 6c 65 22 0d 73 | 65 74 20 6d 65 6e 75 4d |ticle".s|et menuM|
|00004540| 73 67 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 20 22 |sg of me|nuItem "|
|00004550| 50 61 73 74 65 20 41 72 | 74 69 63 6c 65 22 20 6f |Paste Ar|ticle" o|
|00004560| 66 20 6d 65 6e 75 20 22 | 45 64 69 74 22 20 74 6f |f menu "|Edit" to|
|00004570| 20 22 70 61 73 74 65 41 | 72 74 69 63 6c 65 22 0d | "pasteA|rticle".|
|00004580| 69 66 20 74 68 65 20 6c | 6f 63 6b 54 65 78 74 20 |if the l|ockText |
|00004590| 6f 66 20 66 6c 64 20 22 | 42 6f 64 79 22 20 69 73 |of fld "|Body" is|
|000045a0| 20 66 61 6c 73 65 20 74 | 68 65 6e 0d 73 65 74 20 | false t|hen.set |
|000045b0| 74 68 65 20 63 68 65 63 | 6b 4d 61 72 6b 20 6f 66 |the chec|kMark of|
|000045c0| 20 6d 65 6e 75 49 74 65 | 6d 20 31 20 6f 66 20 6d | menuIte|m 1 of m|
|000045d0| 65 6e 75 20 22 4c 61 79 | 6f 75 74 22 20 74 6f 20 |enu "Lay|out" to |
|000045e0| 74 72 75 65 0d 65 6c 73 | 65 0d 73 65 74 20 74 68 |true.els|e.set th|
|000045f0| 65 20 63 68 65 63 6b 4d | 61 72 6b 20 6f 66 20 6d |e checkM|ark of m|
|00004600| 65 6e 75 49 74 65 6d 20 | 31 20 6f 66 20 6d 65 6e |enuItem |1 of men|
|00004610| 75 20 22 4c 61 79 6f 75 | 74 22 20 74 6f 20 66 61 |u "Layou|t" to fa|
|00004620| 6c 73 65 0d 65 6e 64 20 | 69 66 0d 75 6e 6c 6f 63 |lse.end |if.unloc|
|00004630| 6b 20 73 63 72 65 65 6e | 0d 65 6e 64 20 6d 61 67 |k screen|.end mag|
|00004640| 4d 61 6b 65 72 4d 65 6e | 75 73 0d 0d 6f 6e 20 75 |MakerMen|us..on u|
|00004650| 6e 4d 61 67 4d 65 6e 75 | 73 0d 69 66 20 74 68 65 |nMagMenu|s.if the|
|00004660| 72 65 20 69 73 20 6e 6f | 74 20 61 20 6d 65 6e 75 |re is no|t a menu|
|00004670| 20 22 4e 61 76 69 67 61 | 74 69 6f 6e 22 20 74 68 | "Naviga|tion" th|
|00004680| 65 6e 20 65 78 69 74 20 | 75 6e 4d 61 67 4d 65 6e |en exit |unMagMen|
|00004690| 75 73 0d 65 6c 73 65 20 | 72 65 73 65 74 20 6d 65 |us.else |reset me|
|000046a0| 6e 75 42 61 72 0d 65 6e | 64 20 75 6e 4d 61 67 4d |nuBar.en|d unMagM|
|000046b0| 65 6e 75 73 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 6d |enus..fu|nction m|
|000046c0| 61 67 54 65 78 74 49 74 | 65 6d 73 0d 72 65 74 75 |agTextIt|ems.retu|
|000046d0| 72 6e 20 22 45 64 69 74 | 20 54 65 78 74 2c 52 65 |rn "Edit| Text,Re|
|000046e0| 66 6c 6f 77 20 54 65 78 | 74 2c 54 79 70 65 73 65 |flow Tex|t,Typese|
|000046f0| 74 20 54 65 78 74 2c 2d | 2c 49 6d 70 6f 72 74 20 |t Text,-|,Import |
|00004700| 54 65 78 74 2c 45 78 70 | 6f 72 74 20 54 65 78 74 |Text,Exp|ort Text|
|00004710| 2c 2d 2c 4d 61 6b 65 20 | 49 6e 64 65 6e 74 2c 44 |,-,Make |Indent,D|
|00004720| 65 6c 65 74 65 20 49 6e | 64 65 6e 74 2c 2d 2c 22 |elete In|dent,-,"|
|00004730| 0d 65 6e 64 20 6d 61 67 | 54 65 78 74 49 74 65 6d |.end mag|TextItem|
|00004740| 73 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 6d 61 67 54 |s..funct|ion magT|
|00004750| 65 78 74 4d 73 67 73 0d | 72 65 74 75 72 6e 20 22 |extMsgs.|return "|
|00004760| 74 65 78 74 49 6e 73 65 | 72 74 2c 72 65 46 6c 6f |textInse|rt,reFlo|
|00004770| 77 57 69 74 68 53 74 79 | 6c 65 2c 74 79 70 65 73 |wWithSty|le,types|
|00004780| 65 74 54 65 78 74 2c 2c | 69 6d 70 6f 72 74 54 65 |etText,,|importTe|
|00004790| 78 74 2c 65 78 70 6f 72 | 74 54 65 78 74 2c 2c 6d |xt,expor|tText,,m|
|000047a0| 61 6b 65 49 6e 64 65 6e | 74 2c 64 65 6c 65 74 65 |akeInden|t,delete|
|000047b0| 49 6e 64 65 6e 74 2c 2c | 22 0d 65 6e 64 20 6d 61 |Indent,,|".end ma|
|000047c0| 67 54 65 78 74 4d 73 67 | 73 0d 0d 0d 66 75 6e 63 |gTextMsg|s...func|
|000047d0| 74 69 6f 6e 20 6d 61 67 | 50 69 63 74 75 72 65 49 |tion mag|PictureI|
|000047e0| 74 65 6d 73 0d 72 65 74 | 75 72 6e 20 22 43 72 65 |tems.ret|urn "Cre|
|000047f0| 61 74 65 20 52 75 6e 2d | 41 72 6f 75 6e 64 2c 43 |ate Run-|Around,C|
|00004800| 6f 70 79 20 52 75 6e 2d | 41 72 6f 75 6e 64 2c 50 |opy Run-|Around,P|
|00004810| 61 73 74 65 20 52 75 6e | 2d 41 72 6f 75 6e 64 2c |aste Run|-Around,|
|00004820| 43 75 74 20 52 75 6e 2d | 41 72 6f 75 6e 64 2c 2d |Cut Run-|Around,-|
|00004830| 2c 50 6c 61 63 65 20 50 | 69 63 74 2c 43 6f 70 79 |,Place P|ict,Copy|
|00004840| 20 50 69 63 74 2c 50 61 | 73 74 65 20 50 69 63 74 | Pict,Pa|ste Pict|
|00004850| 2c 43 75 74 20 50 69 63 | 74 2c 2d 2c 49 6d 70 6f |,Cut Pic|t,-,Impo|
|00004860| 72 74 20 50 69 63 74 2c | 45 64 69 74 20 50 69 63 |rt Pict,|Edit Pic|
|00004870| 74 20 4c 69 73 74 22 0d | 65 6e 64 20 6d 61 67 50 |t List".|end magP|
|00004880| 69 63 74 75 72 65 49 74 | 65 6d 73 0d 0d 66 75 6e |ictureIt|ems..fun|
|00004890| 63 74 69 6f 6e 20 6d 61 | 67 50 69 63 74 75 72 65 |ction ma|gPicture|
|000048a0| 4d 73 67 73 0d 72 65 74 | 75 72 6e 20 22 70 69 63 |Msgs.ret|urn "pic|
|000048b0| 74 75 72 65 50 6c 61 63 | 65 2c 63 6f 70 79 50 69 |turePlac|e,copyPi|
|000048c0| 63 74 75 72 65 2c 70 61 | 73 74 65 50 69 63 74 75 |cture,pa|stePictu|
|000048d0| 72 65 2c 64 65 6c 65 74 | 65 50 69 63 74 75 72 65 |re,delet|ePicture|
|000048e0| 2c 2c 70 6c 61 63 65 50 | 69 63 74 2c 63 6f 70 79 |,,placeP|ict,copy|
|000048f0| 50 69 63 74 2c 70 61 73 | 74 65 50 69 63 74 2c 63 |Pict,pas|tePict,c|
|00004900| 75 74 50 69 63 74 2c 2c | 69 6d 70 6f 72 74 50 69 |utPict,,|importPi|
|00004910| 63 74 2c 65 64 69 74 50 | 69 63 74 22 0d 65 6e 64 |ct,editP|ict".end|
|00004920| 20 6d 61 67 50 69 63 74 | 75 72 65 4d 73 67 73 0d | magPict|ureMsgs.|
|00004930| 0d 66 75 6e 63 74 69 6f | 6e 20 6d 61 67 4d 65 6e |.functio|n magMen|
|00004940| 75 73 49 74 65 6d 73 0d | 72 65 74 75 72 6e 20 22 |usItems.|return "|
|00004950| 48 69 64 65 20 54 6f 6f | 6c 73 2c 53 68 6f 77 20 |Hide Too|ls,Show |
|00004960| 50 69 63 74 20 4c 69 73 | 74 2c 2d 2c 4e 65 77 20 |Pict Lis|t,-,New |
|00004970| 50 61 67 65 2c 4e 65 77 | 20 41 72 74 69 63 6c 65 |Page,New| Article|
|00004980| 2c 43 68 61 6e 67 65 20 | 41 72 74 69 63 6c 65 20 |,Change |Article |
|00004990| 4e 61 6d 65 2c 44 65 6c | 65 74 65 20 41 72 74 69 |Name,Del|ete Arti|
|000049a0| 63 6c 65 2c 2d 2c 48 69 | 64 65 20 41 72 74 69 63 |cle,-,Hi|de Artic|
|000049b0| 6c 65 20 4e 61 6d 65 73 | 2c 2d 2c 4c 6f 63 6b 20 |le Names|,-,Lock |
|000049c0| 50 61 67 65 2c 2d 2c 43 | 72 65 61 74 65 20 54 61 |Page,-,C|reate Ta|
|000049d0| 62 6c 65 20 6f 66 20 43 | 6f 6e 74 65 6e 74 73 2c |ble of C|ontents,|
|000049e0| 2d 2c 22 20 26 20 c2 0d | 22 53 65 74 20 4d 61 67 |-," & ..|"Set Mag|
|000049f0| 61 7a 69 6e 65 20 54 65 | 78 74 20 46 6f 6e 74 2c |azine Te|xt Font,|
|00004a00| 53 65 74 20 4d 61 67 61 | 7a 69 6e 65 20 54 65 78 |Set Maga|zine Tex|
|00004a10| 74 20 53 69 7a 65 2c 53 | 65 74 20 4d 61 67 61 7a |t Size,S|et Magaz|
|00004a20| 69 6e 65 20 54 65 78 74 | 20 4c 65 61 64 69 6e 67 |ine Text| Leading|
|00004a30| 2c 2d 2c 4e 65 77 20 4d | 61 67 61 7a 69 6e 65 2c |,-,New M|agazine,|
|00004a40| 2d 2c 4d 61 67 4d 61 6b | 65 72 20 48 65 6c 70 22 |-,MagMak|er Help"|
|00004a50| 0d 65 6e 64 20 6d 61 67 | 4d 65 6e 75 73 49 74 65 |.end mag|MenusIte|
|00004a60| 6d 73 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 6d 61 67 |ms..func|tion mag|
|00004a70| 4d 65 6e 75 73 4d 73 67 | 73 0d 72 65 74 75 72 6e |MenusMsg|s.return|
|00004a80| 20 22 73 68 6f 77 54 6f | 6f 6c 73 2c 73 68 6f 77 | "showTo|ols,show|
|00004a90| 50 69 63 74 4c 69 73 74 | 2c 2c 6e 65 77 50 61 67 |PictList|,,newPag|
|00004aa0| 65 2c 63 72 65 61 74 65 | 43 68 61 70 74 65 72 2c |e,create|Chapter,|
|00004ab0| 6e 65 77 43 68 61 70 4e | 61 6d 65 2c 64 65 6c 65 |newChapN|ame,dele|
|00004ac0| 74 65 43 68 61 70 74 65 | 72 2c 2c 68 69 64 65 43 |teChapte|r,,hideC|
|00004ad0| 68 61 70 4e 61 6d 65 2c | 2c 6c 6f 63 6b 50 61 67 |hapName,|,lockPag|
|00004ae0| 65 2c 2c 63 72 65 61 74 | 65 43 6f 6e 74 65 6e 74 |e,,creat|eContent|
|00004af0| 73 2c 2c 73 65 74 46 6f | 6e 74 2c 73 65 74 53 69 |s,,setFo|nt,setSi|
|00004b00| 7a 65 2c 73 65 74 4c 65 | 61 64 2c 2c 63 72 65 61 |ze,setLe|ad,,crea|
|00004b10| 74 65 42 6f 6f 6b 2c 2c | 62 6f 6f 6b 48 65 6c 70 |teBook,,|bookHelp|
|00004b20| 22 0d 65 6e 64 20 6d 61 | 67 4d 65 6e 75 73 4d 73 |".end ma|gMenusMs|
|00004b30| 67 73 0d 0d 6f 6e 20 74 | 65 78 74 49 6e 73 65 72 |gs..on t|extInser|
|00004b40| 74 0d 69 66 20 74 6f 6f | 6c 73 53 74 61 63 6b 28 |t.if too|lsStack(|
|00004b50| 29 20 74 68 65 6e 20 65 | 78 69 74 20 74 65 78 74 |) then e|xit text|
|00004b60| 49 6e 73 65 72 74 0d 6c | 6f 63 6b 20 73 63 72 65 |Insert.l|ock scre|
|00004b70| 65 6e 0d 6c 6f 63 6b 20 | 6d 65 73 73 61 67 65 73 |en.lock |messages|
|00004b80| 0d 69 66 20 74 68 65 20 | 6c 6f 63 6b 54 65 78 74 |.if the |lockText|
|00004b90| 20 6f 66 20 66 6c 64 20 | 22 42 6f 64 79 22 20 74 | of fld |"Body" t|
|00004ba0| 68 65 6e 0d 70 75 74 20 | 74 68 65 20 73 68 6f 72 |hen.put |the shor|
|00004bb0| 74 20 69 64 20 6f 66 20 | 74 68 69 73 20 62 67 20 |t id of |this bg |
|00004bc0| 69 6e 74 6f 20 73 74 6f | 70 43 64 0d 70 75 73 68 |into sto|pCd.push|
|00004bd0| 20 63 64 0d 72 65 70 65 | 61 74 20 75 6e 74 69 6c | cd.repe|at until|
|00004be0| 20 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 64 6f | the mou|se is do|
|00004bf0| 77 6e 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 6b 54 |wn.set t|he lockT|
|00004c00| 65 78 74 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |ext of f|ld "Body|
|00004c10| 22 20 74 6f 20 66 61 6c | 73 65 0d 73 65 74 20 74 |" to fal|se.set t|
|00004c20| 68 65 20 69 63 6f 6e 20 | 6f 66 20 62 67 20 62 74 |he icon |of bg bt|
|00004c30| 6e 20 22 54 68 65 54 6f | 6f 6c 42 74 6e 22 20 74 |n "TheTo|olBtn" t|
|00004c40| 6f 20 54 65 78 74 0d 67 | 6f 20 6e 65 78 74 20 62 |o Text.g|o next b|
|00004c50| 67 0d 69 66 20 74 68 65 | 20 73 68 6f 72 74 20 69 |g.if the| short i|
|00004c60| 64 20 6f 66 20 74 68 69 | 73 20 62 67 20 69 73 20 |d of thi|s bg is |
|00004c70| 73 74 6f 70 43 64 20 74 | 68 65 6e 20 65 78 69 74 |stopCd t|hen exit|
|00004c80| 20 72 65 70 65 61 74 0d | 65 6e 64 20 72 65 70 65 | repeat.|end repe|
|00004c90| 61 74 0d 70 6f 70 20 63 | 64 0d 73 65 74 20 74 68 |at.pop c|d.set th|
|00004ca0| 65 20 63 68 65 63 6b 4d | 61 72 6b 20 6f 66 20 6d |e checkM|ark of m|
|00004cb0| 65 6e 75 49 74 65 6d 20 | 22 45 64 69 74 20 54 65 |enuItem |"Edit Te|
|00004cc0| 78 74 22 20 6f 66 20 6d | 65 6e 75 20 22 4c 61 79 |xt" of m|enu "Lay|
|00004cd0| 6f 75 74 22 20 74 6f 20 | 74 72 75 65 0d 65 6c 73 |out" to |true.els|
|00004ce0| 65 0d 70 75 74 20 74 68 | 65 20 73 68 6f 72 74 20 |e.put th|e short |
|00004cf0| 69 64 20 6f 66 20 74 68 | 69 73 20 62 67 20 69 6e |id of th|is bg in|
|00004d00| 74 6f 20 73 74 6f 70 43 | 64 0d 70 75 73 68 20 63 |to stopC|d.push c|
|00004d10| 64 0d 72 65 70 65 61 74 | 20 75 6e 74 69 6c 20 74 |d.repeat| until t|
|00004d20| 68 65 20 6d 6f 75 73 65 | 20 69 73 20 64 6f 77 6e |he mouse| is down|
|00004d30| 0d 73 65 74 20 74 68 65 | 20 6c 6f 63 6b 54 65 78 |.set the| lockTex|
|00004d40| 74 20 6f 66 20 66 6c 64 | 20 22 42 6f 64 79 22 20 |t of fld| "Body" |
|00004d50| 74 6f 20 74 72 75 65 0d | 73 65 74 20 74 68 65 20 |to true.|set the |
|00004d60| 69 63 6f 6e 20 6f 66 20 | 62 67 20 62 74 6e 20 22 |icon of |bg btn "|
|00004d70| 54 68 65 54 6f 6f 6c 42 | 74 6e 22 20 74 6f 20 48 |TheToolB|tn" to H|
|00004d80| 61 6e 64 0d 67 6f 20 6e | 65 78 74 20 62 67 0d 69 |and.go n|ext bg.i|
|00004d90| 66 20 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |f the sh|ort id o|
|00004da0| 66 20 74 68 69 73 20 62 | 67 20 69 73 20 73 74 6f |f this b|g is sto|
|00004db0| 70 43 64 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |pCd then| exit re|
|00004dc0| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00004dd0| 70 6f 70 20 63 64 0d 73 | 65 74 20 74 68 65 20 63 |pop cd.s|et the c|
|00004de0| 68 65 63 6b 4d 61 72 6b | 20 6f 66 20 6d 65 6e 75 |heckMark| of menu|
|00004df0| 49 74 65 6d 20 22 45 64 | 69 74 20 54 65 78 74 22 |Item "Ed|it Text"|
|00004e00| 20 6f 66 20 6d 65 6e 75 | 20 22 4c 61 79 6f 75 74 | of menu| "Layout|
|00004e10| 22 20 74 6f 20 66 61 6c | 73 65 0d 65 6e 64 20 69 |" to fal|se.end i|
|00004e20| 66 0d 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |f.unlock| screen.|
|00004e30| 65 6e 64 20 74 65 78 74 | 49 6e 73 65 72 74 0d 0d |end text|Insert..|
|00004e40| 0d 6f 6e 20 64 65 6c 65 | 74 65 43 68 61 70 74 65 |.on dele|teChapte|
|00004e50| 72 0d 69 66 20 74 6f 6f | 6c 73 53 74 61 63 6b 28 |r.if too|lsStack(|
|00004e60| 29 20 74 68 65 6e 20 65 | 78 69 74 20 64 65 6c 65 |) then e|xit dele|
|00004e70| 74 65 43 68 61 70 74 65 | 72 0d 61 6e 73 77 65 72 |teChapte|r.answer|
|00004e80| 20 22 41 72 65 20 79 6f | 75 20 73 75 72 65 20 79 | "Are yo|u sure y|
|00004e90| 6f 75 20 77 61 6e 74 20 | 74 6f 20 64 65 6c 65 74 |ou want |to delet|
|00004ea0| 65 20 74 68 69 73 20 61 | 72 74 69 63 6c 65 3f 22 |e this a|rticle?"|
|00004eb0| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 20 6f | with "C|ancel" o|
|00004ec0| 72 20 22 4f 4b 22 0d 69 | 66 20 69 74 20 69 73 20 |r "OK".i|f it is |
|00004ed0| 6e 6f 74 20 22 4f 4b 22 | 20 74 68 65 6e 20 65 78 |not "OK"| then ex|
|00004ee0| 69 74 20 64 65 6c 65 74 | 65 43 68 61 70 74 65 72 |it delet|eChapter|
|00004ef0| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 6c 6f 63 |.lock sc|reen.loc|
|00004f00| 6b 20 6d 65 73 73 61 67 | 65 73 0d 75 6e 6d 61 72 |k messag|es.unmar|
|00004f10| 6b 20 61 6c 6c 20 63 64 | 73 0d 70 75 74 20 66 6c |k all cd|s.put fl|
|00004f20| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|00004f30| 69 6e 74 6f 20 74 68 69 | 73 43 68 61 70 0d 6d 61 |into thi|sChap.ma|
|00004f40| 72 6b 20 63 61 72 64 73 | 20 77 68 65 72 65 20 66 |rk cards| where f|
|00004f50| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|00004f60| 20 69 73 20 74 68 69 73 | 43 68 61 70 0d 69 66 20 | is this|Chap.if |
|00004f70| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6d 61 |the numb|er of ma|
|00004f80| 72 6b 65 64 20 63 64 73 | 20 3d 20 74 68 65 20 6e |rked cds| = the n|
|00004f90| 75 6d 62 65 72 20 6f 66 | 20 63 64 73 20 6f 66 20 |umber of| cds of |
|00004fa0| 74 68 69 73 20 73 74 61 | 63 6b 20 74 68 65 6e 0d |this sta|ck then.|
|00004fb0| 70 75 74 20 28 74 68 65 | 20 6e 75 6d 62 65 72 20 |put (the| number |
|00004fc0| 6f 66 20 63 64 73 20 6f | 66 20 74 68 69 73 20 73 |of cds o|f this s|
|00004fd0| 74 61 63 6b 20 2d 20 31 | 29 20 69 6e 74 6f 20 74 |tack - 1|) into t|
|00004fe0| 6f 74 61 6c 44 65 6c 0d | 65 6c 73 65 0d 70 75 74 |otalDel.|else.put|
|00004ff0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6d | the num|ber of m|
|00005000| 61 72 6b 65 64 20 63 64 | 73 20 69 6e 74 6f 20 74 |arked cd|s into t|
|00005010| 6f 74 61 6c 44 65 6c 0d | 65 6e 64 20 69 66 0d 72 |otalDel.|end if.r|
|00005020| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|00005030| 20 74 6f 20 74 6f 74 61 | 6c 44 65 6c 0d 67 6f 20 | to tota|lDel.go |
|00005040| 66 69 72 73 74 20 6d 61 | 72 6b 65 64 20 63 64 0d |first ma|rked cd.|
|00005050| 64 6f 4d 65 6e 75 20 22 | 44 65 6c 65 74 65 20 43 |doMenu "|Delete C|
|00005060| 61 72 64 22 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |ard".end| repeat.|
|00005070| 63 72 65 61 74 65 43 6f | 6e 74 65 6e 74 73 0d 65 |createCo|ntents.e|
|00005080| 6e 64 20 64 65 6c 65 74 | 65 43 68 61 70 74 65 72 |nd delet|eChapter|
|00005090| 0d 0d 6f 6e 20 6e 65 77 | 43 68 61 70 4e 61 6d 65 |..on new|ChapName|
|000050a0| 0d 69 66 20 74 6f 6f 6c | 73 53 74 61 63 6b 28 29 |.if tool|sStack()|
|000050b0| 20 74 68 65 6e 20 65 78 | 69 74 20 6e 65 77 43 68 | then ex|it newCh|
|000050c0| 61 70 4e 61 6d 65 0d 75 | 6e 6d 61 72 6b 20 61 6c |apName.u|nmark al|
|000050d0| 6c 20 63 64 73 0d 70 75 | 74 20 66 6c 64 20 22 41 |l cds.pu|t fld "A|
|000050e0| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 69 6e 74 6f |rticleNa|me" into|
|000050f0| 20 6f 6c 64 43 68 61 70 | 4e 61 6d 65 0d 61 73 6b | oldChap|Name.ask|
|00005100| 20 22 43 68 61 6e 67 65 | 20 63 68 61 70 74 65 72 | "Change| chapter|
|00005110| 20 6e 61 6d 65 20 74 6f | c9 22 20 77 69 74 68 20 | name to|." with |
|00005120| 6f 6c 64 43 68 61 70 4e | 61 6d 65 0d 69 66 20 74 |oldChapN|ame.if t|
|00005130| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 22 43 61 |he resul|t is "Ca|
|00005140| 6e 63 65 6c 22 20 74 68 | 65 6e 20 65 78 69 74 20 |ncel" th|en exit |
|00005150| 6e 65 77 43 68 61 70 4e | 61 6d 65 0d 70 75 74 20 |newChapN|ame.put |
|00005160| 69 74 20 69 6e 74 6f 20 | 6e 65 77 4e 61 6d 65 0d |it into |newName.|
|00005170| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 6c 6f 63 6b |lock scr|een.lock|
|00005180| 20 6d 65 73 73 61 67 65 | 73 0d 6d 61 72 6b 20 63 | message|s.mark c|
|00005190| 64 73 20 77 68 65 72 65 | 20 66 6c 64 20 22 41 72 |ds where| fld "Ar|
|000051a0| 74 69 63 6c 65 4e 61 6d | 65 22 20 69 73 20 6f 6c |ticleNam|e" is ol|
|000051b0| 64 43 68 61 70 4e 61 6d | 65 0d 67 6f 20 66 69 72 |dChapNam|e.go fir|
|000051c0| 73 74 20 6d 61 72 6b 65 | 64 20 63 64 0d 72 65 70 |st marke|d cd.rep|
|000051d0| 65 61 74 20 77 69 74 68 | 20 78 20 3d 20 31 20 74 |eat with| x = 1 t|
|000051e0| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |o the nu|mber of |
|000051f0| 6d 61 72 6b 65 64 20 63 | 64 73 0d 73 65 74 20 63 |marked c|ds.set c|
|00005200| 75 72 73 6f 72 20 74 6f | 20 62 75 73 79 0d 70 75 |ursor to| busy.pu|
|00005210| 74 20 6e 65 77 4e 61 6d | 65 20 69 6e 74 6f 20 66 |t newNam|e into f|
|00005220| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|00005230| 0d 67 6f 20 6e 65 78 74 | 20 6d 61 72 6b 65 64 20 |.go next| marked |
|00005240| 63 64 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |cd.end r|epeat.en|
|00005250| 64 20 6e 65 77 43 68 61 | 70 4e 61 6d 65 0d 0d 6f |d newCha|pName..o|
|00005260| 6e 20 63 72 65 61 74 65 | 43 68 61 70 74 65 72 0d |n create|Chapter.|
|00005270| 69 66 20 74 6f 6f 6c 73 | 53 74 61 63 6b 28 29 20 |if tools|Stack() |
|00005280| 74 68 65 6e 20 65 78 69 | 74 20 63 72 65 61 74 65 |then exi|t create|
|00005290| 43 68 61 70 74 65 72 0d | 70 75 74 20 66 6c 64 20 |Chapter.|put fld |
|000052a0| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 6e |"Article|Name" in|
|000052b0| 74 6f 20 70 72 65 76 43 | 68 61 70 4e 61 6d 65 0d |to prevC|hapName.|
|000052c0| 61 73 6b 20 22 4e 61 6d | 65 20 6f 66 20 6e 65 77 |ask "Nam|e of new|
|000052d0| 20 61 72 74 69 63 6c 65 | 3f 22 0d 69 66 20 69 74 | article|?".if it|
|000052e0| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 61 | is empt|y then.a|
|000052f0| 6e 73 77 65 72 20 22 41 | 72 74 69 63 6c 65 73 20 |nswer "A|rticles |
|00005300| 6d 75 73 74 20 62 65 20 | 6e 61 6d 65 64 2e 22 0d |must be |named.".|
|00005310| 65 78 69 74 20 63 72 65 | 61 74 65 43 68 61 70 74 |exit cre|ateChapt|
|00005320| 65 72 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 69 74 |er.end i|f.put it|
|00005330| 20 69 6e 74 6f 20 6e 65 | 77 43 68 61 70 4e 61 6d | into ne|wChapNam|
|00005340| 65 0d 75 6e 6d 61 72 6b | 20 61 6c 6c 20 63 64 73 |e.unmark| all cds|
|00005350| 0d 69 66 20 6e 65 77 43 | 68 61 70 4e 61 6d 65 20 |.if newC|hapName |
|00005360| 69 73 20 22 48 65 6c 70 | 22 20 6f 72 20 6e 65 77 |is "Help|" or new|
|00005370| 43 68 61 70 4e 61 6d 65 | 20 69 73 20 22 54 61 62 |ChapName| is "Tab|
|00005380| 6c 65 20 6f 66 20 43 6f | 6e 74 65 6e 74 73 22 20 |le of Co|ntents" |
|00005390| 6f 72 20 6e 65 77 43 68 | 61 70 4e 61 6d 65 20 69 |or newCh|apName i|
|000053a0| 73 20 22 43 6f 76 65 72 | 22 20 74 68 65 6e 0d 61 |s "Cover|" then.a|
|000053b0| 6e 73 77 65 72 20 22 53 | 6f 72 72 79 2c 20 63 61 |nswer "S|orry, ca|
|000053c0| 6e d5 74 20 75 73 65 20 | 22 20 26 20 6e 65 77 43 |n.t use |" & newC|
|000053d0| 68 61 70 4e 61 6d 65 20 | 26 20 22 20 61 73 20 61 |hapName |& " as a|
|000053e0| 6e 20 61 72 74 69 63 6c | 65 20 6e 61 6d 65 2e 22 |n articl|e name."|
|000053f0| 0d 65 78 69 74 20 63 72 | 65 61 74 65 43 68 61 70 |.exit cr|eateChap|
|00005400| 74 65 72 0d 65 6e 64 20 | 69 66 0d 6d 61 72 6b 20 |ter.end |if.mark |
|00005410| 63 64 73 20 77 68 65 72 | 65 20 6e 65 77 43 68 61 |cds wher|e newCha|
|00005420| 70 4e 61 6d 65 20 69 73 | 20 69 6e 20 66 6c 64 20 |pName is| in fld |
|00005430| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 0d 69 66 |"Article|Name".if|
|00005440| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6d | the num|ber of m|
|00005450| 61 72 6b 65 64 20 63 64 | 73 20 3e 20 30 20 74 68 |arked cd|s > 0 th|
|00005460| 65 6e 0d 61 6e 73 77 65 | 72 20 22 41 6e 20 61 72 |en.answe|r "An ar|
|00005470| 74 69 63 6c 65 20 77 69 | 74 68 20 74 68 69 73 20 |ticle wi|th this |
|00005480| 6e 61 6d 65 20 61 6c 72 | 65 61 64 79 20 65 78 69 |name alr|eady exi|
|00005490| 73 74 73 2e 22 0d 65 78 | 69 74 20 63 72 65 61 74 |sts.".ex|it creat|
|000054a0| 65 43 68 61 70 74 65 72 | 0d 65 6e 64 20 69 66 0d |eChapter|.end if.|
|000054b0| 75 6e 6d 61 72 6b 20 61 | 6c 6c 20 63 64 73 0d 6d |unmark a|ll cds.m|
|000054c0| 61 72 6b 20 63 64 73 20 | 77 68 65 72 65 20 66 6c |ark cds |where fl|
|000054d0| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|000054e0| 69 73 20 70 72 65 76 43 | 68 61 70 4e 61 6d 65 0d |is prevC|hapName.|
|000054f0| 67 6f 20 6c 61 73 74 20 | 6d 61 72 6b 65 64 20 63 |go last |marked c|
|00005500| 64 0d 69 66 20 74 68 65 | 20 73 68 6f 72 74 20 6e |d.if the| short n|
|00005510| 61 6d 65 20 6f 66 20 74 | 68 69 73 20 63 64 20 69 |ame of t|his cd i|
|00005520| 73 20 22 43 6f 76 65 72 | 22 20 6f 72 20 74 68 65 |s "Cover|" or the|
|00005530| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 74 | short n|ame of t|
|00005540| 68 69 73 20 63 64 20 69 | 73 20 22 48 65 6c 70 22 |his cd i|s "Help"|
|00005550| 20 74 68 65 6e 0d 67 6f | 20 63 64 20 22 54 61 62 | then.go| cd "Tab|
|00005560| 6c 65 20 6f 66 20 43 6f | 6e 74 65 6e 74 73 22 0d |le of Co|ntents".|
|00005570| 65 6e 64 20 69 66 0d 64 | 6f 4d 65 6e 75 20 22 4e |end if.d|oMenu "N|
|00005580| 65 77 20 43 61 72 64 22 | 0d 70 75 74 20 69 74 20 |ew Card"|.put it |
|00005590| 69 6e 74 6f 20 66 6c 64 | 20 22 41 72 74 69 63 6c |into fld| "Articl|
|000055a0| 65 4e 61 6d 65 22 0d 69 | 66 20 6e 6f 74 20 74 68 |eName".i|f not th|
|000055b0| 65 20 63 68 65 63 6b 4d | 61 72 6b 20 6f 66 20 6d |e checkM|ark of m|
|000055c0| 65 6e 75 49 74 65 6d 20 | 22 45 64 69 74 20 54 65 |enuItem |"Edit Te|
|000055d0| 78 74 22 20 6f 66 20 6d | 65 6e 75 20 22 4c 61 79 |xt" of m|enu "Lay|
|000055e0| 6f 75 74 22 20 74 68 65 | 6e 0d 74 65 78 74 49 6e |out" the|n.textIn|
|000055f0| 73 65 72 74 0d 65 6e 64 | 20 69 66 0d 73 65 6c 65 |sert.end| if.sele|
|00005600| 63 74 20 62 65 66 6f 72 | 65 20 74 65 78 74 20 6f |ct befor|e text o|
|00005610| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 0d 65 6e 64 |f fld "B|ody".end|
|00005620| 20 63 72 65 61 74 65 43 | 68 61 70 74 65 72 0d 0d | createC|hapter..|
|00005630| 6f 6e 20 68 69 64 65 43 | 68 61 70 4e 61 6d 65 0d |on hideC|hapName.|
|00005640| 69 66 20 6e 6f 74 20 74 | 68 65 20 76 69 73 69 62 |if not t|he visib|
|00005650| 6c 65 20 6f 66 20 66 6c | 64 20 22 41 72 74 69 63 |le of fl|d "Artic|
|00005660| 6c 65 4e 61 6d 65 22 20 | 74 68 65 6e 0d 73 65 74 |leName" |then.set|
|00005670| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 6d 65 6e | the nam|e of men|
|00005680| 75 49 74 65 6d 20 39 20 | 6f 66 20 6d 65 6e 75 20 |uItem 9 |of menu |
|00005690| 22 4d 61 67 4d 61 6b 65 | 72 22 20 74 6f 20 22 48 |"MagMake|r" to "H|
|000056a0| 69 64 65 20 41 72 74 69 | 63 6c 65 20 4e 61 6d 65 |ide Arti|cle Name|
|000056b0| 73 22 0d 73 65 74 20 74 | 68 65 20 76 69 73 69 62 |s".set t|he visib|
|000056c0| 6c 65 20 6f 66 20 66 6c | 64 20 22 41 72 74 69 63 |le of fl|d "Artic|
|000056d0| 6c 65 4e 61 6d 65 22 20 | 74 6f 20 74 72 75 65 0d |leName" |to true.|
|000056e0| 65 6c 73 65 0d 73 65 74 | 20 74 68 65 20 6e 61 6d |else.set| the nam|
|000056f0| 65 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 39 20 |e of men|uItem 9 |
|00005700| 6f 66 20 6d 65 6e 75 20 | 22 4d 61 67 4d 61 6b 65 |of menu |"MagMake|
|00005710| 72 22 20 74 6f 20 22 53 | 68 6f 77 20 41 72 74 69 |r" to "S|how Arti|
|00005720| 63 6c 65 20 4e 61 6d 65 | 73 22 0d 73 65 74 20 74 |cle Name|s".set t|
|00005730| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 66 6c |he visib|le of fl|
|00005740| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|00005750| 74 6f 20 66 61 6c 73 65 | 0d 65 6e 64 20 69 66 0d |to false|.end if.|
|00005760| 65 6e 64 20 68 69 64 65 | 43 68 61 70 4e 61 6d 65 |end hide|ChapName|
|00005770| 0d 0d 0d 6f 6e 20 63 72 | 65 61 74 65 42 6f 6f 6b |...on cr|eateBook|
|00005780| 0d 69 66 20 74 6f 6f 6c | 73 53 74 61 63 6b 28 29 |.if tool|sStack()|
|00005790| 20 74 68 65 6e 20 65 78 | 69 74 20 63 72 65 61 74 | then ex|it creat|
|000057a0| 65 42 6f 6f 6b 0d 67 6c | 6f 62 61 6c 20 66 69 6c |eBook.gl|obal fil|
|000057b0| 65 4e 61 6d 65 0d 70 75 | 74 20 65 6d 70 74 79 20 |eName.pu|t empty |
|000057c0| 69 6e 74 6f 20 70 69 63 | 74 4c 69 73 74 0d 6c 6f |into pic|tList.lo|
|000057d0| 63 6b 20 73 63 72 65 65 | 6e 0d 6c 6f 63 6b 20 6d |ck scree|n.lock m|
|000057e0| 65 73 73 61 67 65 73 0d | 70 75 73 68 20 63 64 0d |essages.|push cd.|
|000057f0| 67 6f 20 73 74 61 63 6b | 20 22 4d 61 67 4d 61 6b |go stack| "MagMak|
|00005800| 65 72 20 54 6f 6f 6c 73 | 20 41 22 0d 70 75 74 20 |er Tools| A".put |
|00005810| 66 6c 64 20 22 56 65 72 | 73 69 6f 6e 22 20 69 6e |fld "Ver|sion" in|
|00005820| 74 6f 20 63 75 72 56 65 | 72 73 69 6f 6e 0d 70 6f |to curVe|rsion.po|
|00005830| 70 20 63 64 0d 69 66 20 | 74 68 65 72 65 20 69 73 |p cd.if |there is|
|00005840| 20 61 20 66 6c 64 20 22 | 50 69 63 74 54 68 69 73 | a fld "|PictThis|
|00005850| 50 61 67 65 22 20 74 68 | 65 6e 0d 69 66 20 74 68 |Page" th|en.if th|
|00005860| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00005870| 28 69 74 65 6d 20 31 20 | 6f 66 20 66 6c 64 20 22 |(item 1 |of fld "|
|00005880| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 29 20 74 |PictThis|Page") t|
|00005890| 68 65 6e 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen clos|e window|
|000058a0| 20 28 69 74 65 6d 20 31 | 20 6f 66 20 66 6c 64 20 | (item 1| of fld |
|000058b0| 22 50 69 63 74 54 68 69 | 73 50 61 67 65 22 29 0d |"PictThi|sPage").|
|000058c0| 65 6e 64 20 69 66 0d 70 | 75 74 20 74 68 65 20 6c |end if.p|ut the l|
|000058d0| 6f 6e 67 20 6e 61 6d 65 | 20 6f 66 20 74 68 69 73 |ong name| of this|
|000058e0| 20 73 74 61 63 6b 20 69 | 6e 74 6f 20 6d 61 73 74 | stack i|nto mast|
|000058f0| 65 72 42 6f 6f 6b 0d 61 | 73 6b 20 66 69 6c 65 20 |erBook.a|sk file |
|00005900| 22 43 72 65 61 74 65 20 | 61 20 6e 65 77 20 6d 61 |"Create |a new ma|
|00005910| 67 61 7a 69 6e 65 20 6e | 61 6d 65 64 c9 22 0d 69 |gazine n|amed.".i|
|00005920| 66 20 69 74 20 69 73 20 | 6e 6f 74 20 22 43 61 6e |f it is |not "Can|
|00005930| 63 65 6c 22 20 61 6e 64 | 20 74 68 65 20 72 65 73 |cel" and| the res|
|00005940| 75 6c 74 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 |ult is e|mpty the|
|00005950| 6e 0d 63 72 65 61 74 65 | 20 73 74 61 63 6b 20 69 |n.create| stack i|
|00005960| 74 20 77 69 74 68 20 74 | 68 69 73 20 62 67 0d 65 |t with t|his bg.e|
|00005970| 6c 73 65 0d 65 78 69 74 | 20 63 72 65 61 74 65 42 |lse.exit| createB|
|00005980| 6f 6f 6b 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 69 |ook.end |if.put i|
|00005990| 74 20 69 6e 74 6f 20 6e | 65 77 42 6f 6f 6b 0d 70 |t into n|ewBook.p|
|000059a0| 75 74 20 67 65 74 46 69 | 6c 65 4e 61 6d 65 28 74 |ut getFi|leName(t|
|000059b0| 68 65 20 6c 6f 6e 67 20 | 6e 61 6d 65 20 6f 66 20 |he long |name of |
|000059c0| 74 68 69 73 20 73 74 61 | 63 6b 29 20 69 6e 74 6f |this sta|ck) into|
|000059d0| 20 46 69 6c 65 4e 61 6d | 65 0d 67 65 74 20 52 65 | FileNam|e.get Re|
|000059e0| 73 6f 75 72 63 65 73 28 | 46 69 6c 65 4e 61 6d 65 |sources(|FileName|
|000059f0| 29 0d 73 6f 72 74 20 69 | 74 0d 70 75 74 20 69 74 |).sort i|t.put it|
|00005a00| 20 69 6e 74 6f 20 72 65 | 73 4c 69 73 74 0d 70 75 | into re|sList.pu|
|00005a10| 74 20 72 65 74 75 72 6e | 20 61 66 74 65 72 20 72 |t return| after r|
|00005a20| 65 73 4c 69 73 74 0d 72 | 65 70 65 61 74 20 77 69 |esList.r|epeat wi|
|00005a30| 74 68 20 79 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th y = 1| to the |
|00005a40| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00005a50| 6f 66 20 72 65 73 4c 69 | 73 74 0d 69 66 20 77 6f |of resLi|st.if wo|
|00005a60| 72 64 20 31 20 6f 66 20 | 6c 69 6e 65 20 79 20 6f |rd 1 of |line y o|
|00005a70| 66 20 72 65 73 4c 69 73 | 74 20 69 73 20 22 50 49 |f resLis|t is "PI|
|00005a80| 43 54 22 20 74 68 65 6e | 20 70 75 74 20 6c 69 6e |CT" then| put lin|
|00005a90| 65 20 79 20 6f 66 20 72 | 65 73 4c 69 73 74 20 26 |e y of r|esList &|
|00005aa0| 20 72 65 74 75 72 6e 20 | 61 66 74 65 72 20 70 69 | return |after pi|
|00005ab0| 63 74 4c 69 73 74 0d 65 | 6e 64 20 72 65 70 65 61 |ctList.e|nd repea|
|00005ac0| 74 0d 69 66 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |t.if the| number |
|00005ad0| 6f 66 20 6c 69 6e 65 73 | 20 6f 66 20 70 69 63 74 |of lines| of pict|
|00005ae0| 4c 69 73 74 20 3e 20 30 | 20 74 68 65 6e 0d 61 6e |List > 0| then.an|
|00005af0| 73 77 65 72 20 22 43 6f | 70 79 20 50 49 43 54 73 |swer "Co|py PICTs|
|00005b00| 20 66 72 6f 6d 20 6e 65 | 77 20 6d 61 67 61 7a 69 | from ne|w magazi|
|00005b10| 6e 65 3f 22 20 77 69 74 | 68 20 22 44 65 6c 65 74 |ne?" wit|h "Delet|
|00005b20| 65 22 20 6f 72 20 22 43 | 6f 70 79 22 0d 69 66 20 |e" or "C|opy".if |
|00005b30| 69 74 20 69 73 20 22 44 | 65 6c 65 74 65 22 20 74 |it is "D|elete" t|
|00005b40| 68 65 6e 0d 70 75 74 20 | 74 72 75 65 20 69 6e 74 |hen.put |true int|
|00005b50| 6f 20 64 65 6c 50 69 63 | 74 73 0d 65 6e 64 20 69 |o delPic|ts.end i|
|00005b60| 66 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 22 43 6f |f.end if|.put "Co|
|00005b70| 76 65 72 2c 48 65 6c 70 | 2c 54 61 62 6c 65 20 6f |ver,Help|,Table o|
|00005b80| 66 20 43 6f 6e 74 65 6e | 74 73 22 20 69 6e 74 6f |f Conten|ts" into|
|00005b90| 20 70 61 67 65 49 74 65 | 6d 73 0d 72 65 70 65 61 | pageIte|ms.repea|
|00005ba0| 74 20 77 69 74 68 20 78 | 20 3d 20 31 20 74 6f 20 |t with x| = 1 to |
|00005bb0| 33 0d 67 6f 20 6d 61 73 | 74 65 72 42 6f 6f 6b 0d |3.go mas|terBook.|
|00005bc0| 67 6f 20 63 64 20 28 69 | 74 65 6d 20 78 20 6f 66 |go cd (i|tem x of|
|00005bd0| 20 70 61 67 65 49 74 65 | 6d 73 29 0d 64 6f 4d 65 | pageIte|ms).doMe|
|00005be0| 6e 75 20 22 43 6f 70 79 | 20 43 61 72 64 22 0d 67 |nu "Copy| Card".g|
|00005bf0| 6f 20 6e 65 77 42 6f 6f | 6b 0d 69 66 20 78 20 ad |o newBoo|k.if x .|
|00005c00| 20 31 20 74 68 65 6e 0d | 67 6f 20 6c 61 73 74 0d | 1 then.|go last.|
|00005c10| 64 6f 4d 65 6e 75 20 22 | 50 61 73 74 65 20 43 61 |doMenu "|Paste Ca|
|00005c20| 72 64 22 0d 69 66 20 73 | 68 6f 72 74 20 6e 61 6d |rd".if s|hort nam|
|00005c30| 65 20 6f 66 20 74 68 69 | 73 20 63 64 20 69 73 20 |e of thi|s cd is |
|00005c40| 22 54 61 62 6c 65 20 6f | 66 20 43 6f 6e 74 65 6e |"Table o|f Conten|
|00005c50| 74 73 22 20 74 68 65 6e | 0d 70 75 74 20 22 22 20 |ts" then|.put "" |
|00005c60| 69 6e 74 6f 20 63 64 20 | 66 6c 64 20 22 54 61 62 |into cd |fld "Tab|
|00005c70| 6c 65 31 22 0d 70 75 74 | 20 22 22 20 69 6e 74 6f |le1".put| "" into|
|00005c80| 20 63 64 20 66 6c 64 20 | 22 50 61 67 65 31 22 0d | cd fld |"Page1".|
|00005c90| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 63 64 |if there| is a cd|
|00005ca0| 20 66 6c 64 20 22 54 61 | 62 6c 65 32 22 20 74 68 | fld "Ta|ble2" th|
|00005cb0| 65 6e 20 70 75 74 20 22 | 22 20 69 6e 74 6f 20 63 |en put "|" into c|
|00005cc0| 64 20 66 6c 64 20 22 54 | 61 62 6c 65 32 22 0d 69 |d fld "T|able2".i|
|00005cd0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 63 64 20 |f there |is a cd |
|00005ce0| 66 6c 64 20 22 50 61 67 | 65 32 22 20 74 68 65 6e |fld "Pag|e2" then|
|00005cf0| 20 70 75 74 20 22 22 20 | 69 6e 74 6f 20 63 64 20 | put "" |into cd |
|00005d00| 66 6c 64 20 22 50 61 67 | 65 32 22 0d 70 75 74 20 |fld "Pag|e2".put |
|00005d10| 63 75 72 56 65 72 73 69 | 6f 6e 20 69 6e 74 6f 20 |curVersi|on into |
|00005d20| 66 6c 64 20 22 56 65 72 | 73 69 6f 6e 22 20 6f 66 |fld "Ver|sion" of|
|00005d30| 20 63 64 20 22 54 61 62 | 6c 65 20 6f 66 20 43 6f | cd "Tab|le of Co|
|00005d40| 6e 74 65 6e 74 73 22 0d | 65 6e 64 20 69 66 0d 65 |ntents".|end if.e|
|00005d50| 6c 73 65 0d 70 75 74 20 | 22 50 61 73 74 65 20 6d |lse.put |"Paste m|
|00005d60| 61 67 61 7a 69 6e 65 20 | 63 6f 76 65 72 20 6f 6e |agazine |cover on|
|00005d70| 20 74 68 69 73 20 70 61 | 67 65 22 20 69 6e 74 6f | this pa|ge" into|
|00005d80| 20 6c 69 6e 65 20 36 20 | 6f 66 20 66 6c 64 20 22 | line 6 |of fld "|
|00005d90| 42 6f 64 79 22 0d 73 65 | 74 20 74 68 65 20 6e 61 |Body".se|t the na|
|00005da0| 6d 65 20 6f 66 20 74 68 | 69 73 20 63 64 20 74 6f |me of th|is cd to|
|00005db0| 20 22 43 6f 76 65 72 22 | 0d 65 6e 64 20 69 66 0d | "Cover"|.end if.|
|00005dc0| 69 66 20 64 65 6c 50 69 | 63 74 73 20 69 73 20 74 |if delPi|cts is t|
|00005dd0| 72 75 65 20 74 68 65 6e | 20 70 75 74 20 65 6d 70 |rue then| put emp|
|00005de0| 74 79 20 69 6e 74 6f 20 | 66 6c 64 20 22 50 69 63 |ty into |fld "Pic|
|00005df0| 74 54 68 69 73 50 61 67 | 65 22 0d 69 66 20 74 68 |tThisPag|e".if th|
|00005e00| 65 72 65 20 69 73 20 61 | 20 66 6c 64 20 22 43 6f |ere is a| fld "Co|
|00005e10| 70 79 72 69 67 68 74 22 | 20 74 68 65 6e 20 70 75 |pyright"| then pu|
|00005e20| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 66 6c 64 |t empty |into fld|
|00005e30| 20 22 43 6f 70 79 72 69 | 67 68 74 22 0d 65 6e 64 | "Copyri|ght".end|
|00005e40| 20 72 65 70 65 61 74 0d | 67 6f 20 6c 61 73 74 0d | repeat.|go last.|
|00005e50| 64 6f 4d 65 6e 75 20 22 | 4e 65 77 20 43 61 72 64 |doMenu "|New Card|
|00005e60| 22 0d 70 75 74 20 22 41 | 72 74 69 63 6c 65 20 31 |".put "A|rticle 1|
|00005e70| 22 20 69 6e 74 6f 20 66 | 6c 64 20 22 41 72 74 69 |" into f|ld "Arti|
|00005e80| 63 6c 65 4e 61 6d 65 22 | 0d 63 72 65 61 74 65 43 |cleName"|.createC|
|00005e90| 6f 6e 74 65 6e 74 73 0d | 67 6f 20 63 64 20 31 0d |ontents.|go cd 1.|
|00005ea0| 70 75 74 20 6e 65 77 42 | 6f 6f 6b 20 69 6e 74 6f |put newB|ook into|
|00005eb0| 20 46 69 6c 65 4e 61 6d | 65 0d 69 66 20 64 65 6c | FileNam|e.if del|
|00005ec0| 50 69 63 74 73 20 69 73 | 20 74 72 75 65 20 74 68 |Picts is| true th|
|00005ed0| 65 6e 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 7a |en.repea|t with z|
|00005ee0| 20 3d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | = 1 to |the numb|
|00005ef0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 66 20 70 |er of li|nes of p|
|00005f00| 69 63 74 4c 69 73 74 0d | 72 65 6d 6f 76 65 50 69 |ictList.|removePi|
|00005f10| 63 74 28 6c 69 6e 65 20 | 7a 20 6f 66 20 70 69 63 |ct(line |z of pic|
|00005f20| 74 4c 69 73 74 29 0d 65 | 6e 64 20 72 65 70 65 61 |tList).e|nd repea|
|00005f30| 74 0d 65 6e 64 20 69 66 | 0d 64 6f 4d 65 6e 75 20 |t.end if|.doMenu |
|00005f40| 22 43 6f 6d 70 61 63 74 | 20 53 74 61 63 6b 22 0d |"Compact| Stack".|
|00005f50| 65 6e 64 20 63 72 65 61 | 74 65 42 6f 6f 6b 0d 0d |end crea|teBook..|
|00005f60| 6f 6e 20 62 75 74 74 6f | 6e 31 0d 69 66 20 74 6f |on butto|n1.if to|
|00005f70| 6f 6c 73 53 74 61 63 6b | 28 29 20 74 68 65 6e 20 |olsStack|() then |
|00005f80| 65 78 69 74 20 62 75 74 | 74 6f 6e 31 0d 67 6c 6f |exit but|ton1.glo|
|00005f90| 62 61 6c 20 74 68 65 54 | 6f 6f 6c 0d 70 75 74 20 |bal theT|ool.put |
|00005fa0| 65 6d 70 74 79 20 69 6e | 74 6f 20 74 68 65 54 6f |empty in|to theTo|
|00005fb0| 6f 6c 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |ol.if th|ere is a|
|00005fc0| 20 62 74 6e 20 22 50 69 | 63 74 75 72 65 22 20 74 | btn "Pi|cture" t|
|00005fd0| 68 65 6e 0d 69 66 20 74 | 68 65 20 73 74 79 6c 65 |hen.if t|he style|
|00005fe0| 20 6f 66 20 62 74 6e 20 | 22 50 69 63 74 75 72 65 | of btn |"Picture|
|00005ff0| 22 20 69 73 20 22 52 65 | 63 74 61 6e 67 6c 65 22 |" is "Re|ctangle"|
|00006000| 20 74 68 65 6e 0d 61 6e | 73 77 65 72 20 22 52 65 | then.an|swer "Re|
|00006010| 66 6c 6f 77 20 74 65 78 | 74 3f 22 20 77 69 74 68 |flow tex|t?" with|
|00006020| 20 22 43 61 6e 63 65 6c | 22 20 6f 72 20 22 4f 4b | "Cancel|" or "OK|
|00006030| 22 0d 69 66 20 69 74 20 | 69 73 20 22 4f 4b 22 20 |".if it |is "OK" |
|00006040| 74 68 65 6e 0d 72 65 46 | 6c 6f 77 57 69 74 68 53 |then.reF|lowWithS|
|00006050| 74 79 6c 65 0d 65 6c 73 | 65 0d 6c 6f 63 6b 20 73 |tyle.els|e.lock s|
|00006060| 63 72 65 65 6e 0d 73 65 | 74 20 74 68 65 20 73 74 |creen.se|t the st|
|00006070| 79 6c 65 20 6f 66 20 62 | 74 6e 20 22 50 69 63 74 |yle of b|tn "Pict|
|00006080| 75 72 65 22 20 74 6f 20 | 74 72 61 6e 73 70 61 72 |ure" to |transpar|
|00006090| 65 6e 74 0d 73 65 74 20 | 74 68 65 20 73 68 6f 77 |ent.set |the show|
|000060a0| 4e 61 6d 65 20 6f 66 20 | 62 74 6e 20 22 50 69 63 |Name of |btn "Pic|
|000060b0| 74 75 72 65 22 20 74 6f | 20 66 61 6c 73 65 0d 75 |ture" to| false.u|
|000060c0| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 65 6e 64 |nlock sc|reen.end|
|000060d0| 20 69 66 0d 65 6e 64 20 | 69 66 0d 0d 65 6e 64 20 | if.end |if..end |
|000060e0| 69 66 0d 69 66 20 6e 6f | 74 20 74 68 65 20 6c 6f |if.if no|t the lo|
|000060f0| 63 6b 54 65 78 74 20 6f | 66 20 66 6c 64 20 22 42 |ckText o|f fld "B|
|00006100| 6f 64 79 22 20 74 68 65 | 6e 20 74 65 78 74 49 6e |ody" the|n textIn|
|00006110| 73 65 72 74 0d 73 65 74 | 20 74 68 65 20 69 63 6f |sert.set| the ico|
|00006120| 6e 20 6f 66 20 62 67 20 | 62 74 6e 20 22 54 68 65 |n of bg |btn "The|
|00006130| 54 6f 6f 6c 42 74 6e 22 | 20 74 6f 20 48 61 6e 64 |ToolBtn"| to Hand|
|00006140| 0d 73 65 74 20 74 68 65 | 20 63 68 65 63 6b 4d 61 |.set the| checkMa|
|00006150| 72 6b 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 20 31 |rk of me|nuItem 1|
|00006160| 20 6f 66 20 6d 65 6e 75 | 20 22 4c 61 79 6f 75 74 | of menu| "Layout|
|00006170| 22 20 74 6f 20 66 61 6c | 73 65 0d 69 66 20 74 68 |" to fal|se.if th|
|00006180| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00006190| 28 69 74 65 6d 20 31 20 | 6f 66 20 66 6c 64 20 22 |(item 1 |of fld "|
|000061a0| 50 69 63 74 54 68 69 73 | 50 61 67 65 22 29 20 74 |PictThis|Page") t|
|000061b0| 68 65 6e 0d 73 68 6f 77 | 20 77 69 6e 64 6f 77 20 |hen.show| window |
|000061c0| 69 74 65 6d 20 31 20 6f | 66 20 66 6c 64 20 22 50 |item 1 o|f fld "P|
|000061d0| 69 63 74 54 68 69 73 50 | 61 67 65 22 0d 65 6e 64 |ictThisP|age".end|
|000061e0| 20 69 66 0d 63 68 6f 6f | 73 65 20 74 68 65 20 62 | if.choo|se the b|
|000061f0| 72 6f 77 73 65 20 74 6f | 6f 6c 0d 65 6e 64 20 62 |rowse to|ol.end b|
|00006200| 75 74 74 6f 6e 31 0d 0d | 6f 6e 20 62 75 74 74 6f |utton1..|on butto|
|00006210| 6e 32 0d 69 66 20 74 6f | 6f 6c 73 53 74 61 63 6b |n2.if to|olsStack|
|00006220| 28 29 20 74 68 65 6e 20 | 65 78 69 74 20 62 75 74 |() then |exit but|
|00006230| 74 6f 6e 32 0d 63 68 6f | 6f 73 65 20 74 68 65 20 |ton2.cho|ose the |
|00006240| 62 72 6f 77 73 65 20 74 | 6f 6f 6c 0d 74 65 78 74 |browse t|ool.text|
|00006250| 49 6e 73 65 72 74 0d 65 | 6e 64 20 62 75 74 74 6f |Insert.e|nd butto|
|00006260| 6e 32 0d 0d 6f 6e 20 62 | 75 74 74 6f 6e 33 0d 69 |n2..on b|utton3.i|
|00006270| 66 20 74 6f 6f 6c 73 53 | 74 61 63 6b 28 29 20 74 |f toolsS|tack() t|
|00006280| 68 65 6e 20 65 78 69 74 | 20 62 75 74 74 6f 6e 33 |hen exit| button3|
|00006290| 0d 67 6c 6f 62 61 6c 20 | 74 68 65 54 6f 6f 6c 2c |.global |theTool,|
|000062a0| 74 68 65 4f 6c 64 52 65 | 63 74 2c 74 68 65 43 6f |theOldRe|ct,theCo|
|000062b0| 72 6e 65 72 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |rner.if |not the |
|000062c0| 6c 6f 63 6b 54 65 78 74 | 20 6f 66 20 66 6c 64 20 |lockText| of fld |
|000062d0| 22 42 6f 64 79 22 20 74 | 68 65 6e 20 74 65 78 74 |"Body" t|hen text|
|000062e0| 49 6e 73 65 72 74 0d 70 | 75 74 20 22 70 69 63 74 |Insert.p|ut "pict|
|000062f0| 75 72 65 54 6f 6f 6c 22 | 20 69 6e 74 6f 20 74 68 |ureTool"| into th|
|00006300| 65 54 6f 6f 6c 0d 63 68 | 6f 6f 73 65 20 74 68 65 |eTool.ch|oose the|
|00006310| 20 62 72 6f 77 73 65 20 | 74 6f 6f 6c 0d 73 65 74 | browse |tool.set|
|00006320| 20 74 68 65 20 63 68 65 | 63 6b 4d 61 72 6b 20 6f | the che|ckMark o|
|00006330| 66 20 6d 65 6e 75 49 74 | 65 6d 20 31 31 20 6f 66 |f menuIt|em 11 of|
|00006340| 20 6d 65 6e 75 20 22 4c | 61 79 6f 75 74 22 20 74 | menu "L|ayout" t|
|00006350| 6f 20 74 72 75 65 0d 69 | 66 20 74 68 65 72 65 20 |o true.i|f there |
|00006360| 69 73 20 61 20 62 74 6e | 20 22 50 69 63 74 75 72 |is a btn| "Pictur|
|00006370| 65 22 20 74 68 65 6e 0d | 69 66 20 74 68 65 72 65 |e" then.|if there|
|00006380| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|00006390| 65 6d 20 31 20 6f 66 20 | 66 6c 64 20 22 50 69 63 |em 1 of |fld "Pic|
|000063a0| 74 54 68 69 73 50 61 67 | 65 22 29 20 74 68 65 6e |tThisPag|e") then|
|000063b0| 0d 68 69 64 65 20 77 69 | 6e 64 6f 77 20 69 74 65 |.hide wi|ndow ite|
|000063c0| 6d 20 31 20 6f 66 20 66 | 6c 64 20 22 50 69 63 74 |m 1 of f|ld "Pict|
|000063d0| 54 68 69 73 50 61 67 65 | 22 0d 65 6e 64 20 69 66 |ThisPage|".end if|
|000063e0| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 69 66 20 |.lock sc|reen.if |
|000063f0| 74 68 65 20 73 74 79 6c | 65 20 6f 66 20 62 74 6e |the styl|e of btn|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.